Update datetime field to correctly store in UTC#1401
Update datetime field to correctly store in UTC#1401mackeyguenther wants to merge 6 commits intoThinkmill:mainfrom
datetime field to correctly store in UTC#1401Conversation
…UTC, display in user's local time); update `datetime` documentation
|
|
This would be really nice to see 👍 |
|
@BarnabyBishop @emmatown @JedWatson Happy holidays, hope you all are doing well. 🎄 Would love to see this reviewed and get merged into the next release! This is causing headaches for getting the local timezone right. If I write the date |
|
I tried writing a script to properly convert Instead, I'm parsing these incorrect Note that date-only dates like As an aside, fixing this kind of seems like a breaking change - dates will start being written differently after this gets fixed, which might break some sites' assumptions on how dates are written by Keystatic. |
fixes #1400
datetimefield (UI component & validation) to serialize/deserialize the value in UTC time, and render the value in the user's local timezonedatetimedocumentation to make it clear thatdatetimestores its value in UTC time, and displays it in the user's local timezone in the editing interface