You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The time part does not save the provided date into the database, only the time with the date 2000-01-01.
To Reproduce
Edit a time part on a page
Set its contents to (e.g.) 2020-05-01T09:00
Save the page
The time part now shows 2000-01-01T09:00, which is the time stored in the database.
Expected behaviour
The time should save as (e.g.) 2020-05-01T09:00 - the date should be preserved.
Alternatively, and I think this would be better, the Time part should be reserved for times only, perhaps adding a third DateTime part for this purpose.
Devices:
OS: Windows, GNU/Linux, Android
Browser firefox, chrome
Version latest
Additional context
I've tried some fixes, like changing the attr_json type to :datetime, but this didn't fix the issue. The problem seems to occur at the point where the part is being saved, since the server is receiving the correct data.
The text was updated successfully, but these errors were encountered:
Describe the bug
The time part does not save the provided date into the database, only the time with the date 2000-01-01.
To Reproduce
Expected behaviour
The time should save as (e.g.) 2020-05-01T09:00 - the date should be preserved.
Alternatively, and I think this would be better, the Time part should be reserved for times only, perhaps adding a third DateTime part for this purpose.
Devices:
Additional context
I've tried some fixes, like changing the attr_json type to
:datetime
, but this didn't fix the issue. The problem seems to occur at the point where the part is being saved, since the server is receiving the correct data.The text was updated successfully, but these errors were encountered: