thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.78k stars 2.67k forks source link

Custom timestamp column for future date returns current date on update #5139

Closed sajjadalis closed 3 years ago

sajjadalis commented 3 years ago

Description

A custom timestamp column for future date works fine while creating the new post (e.g.: 10 Nov 2020) but when i update that post, the future date changes to current time. (e.g.: 04 Nov 2020).

Steps To Reproduce

Create Job Model and migration with a custom column. e.g: $table->timestamp('deadline'); Create BREAD, choose Read/Add/Edit/Delete permissions for deadline timestamp. Create new Job and choose a future date e.g. 10 Nov 2020. Edit the job, modify title and save. Deadline will be changed to current timestamp.

Expected behavior

It should not change Deadline field value unless i modify it (or am i doing something wrong?)

sajjadalis commented 3 years ago

Any help on this please. Our site is in in production mode and whenever we update any job or other post type, Deadline change to update time and then we have to update it again by choosing future date. It's really frustrating.

Thanks

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.