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
If i see the datetime widget, it correctly shows my local time. When i set the date to now and save, the date&time is saved for UTC, e.g. 2024-10-31T20:57:00.000Z but should save it as 2024-10-31T20:57:00+02:00.
To Reproduce
create content
use the a datetime widget
hit the "now" button
save
Expected behavior
2024-10-31T20:57:00+02:00 is saved
I've submitted a PR (#7386) that addresses this timezone handling issue. While waiting for the PR to be merged, you can apply an immediate fix to your project:
Add this configuration to your datetime widgets:
fields:
- label: "Your Date Field"name: "date"widget: "datetime"picker_utc: falseformat: "YYYY-MM-DDTHH:mm:ss.SSSZ"
Describe the bug
If i see the datetime widget, it correctly shows my local time. When i set the date to now and save, the date&time is saved for UTC, e.g. 2024-10-31T20:57:00.000Z but should save it as 2024-10-31T20:57:00+02:00.
To Reproduce
Expected behavior
2024-10-31T20:57:00+02:00 is saved
Applicable Versions:
CMS configuration
The text was updated successfully, but these errors were encountered: