Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDate and datetime persisted values may not conform to specified format #3702
Projects
Comments
I think this is actually a pretty complex issue. I did not find an widget with the required logic to mimic it nor an abstraction to build on top of it. The hack I found is too outside of the packages to be easily integrated as a long term solution. Related to |
It's because the value is a Date object when the frontmatter is loaded. The initial value of date / datetime widget is not formatted. If you check the preview after you refresh admin site, you'll find the date is like There may be some solutions but I haven't tested:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi folks many thanks for your great work.
Describe the bug
Date and datetime can be improperly persisted.
To Reproduce
2020-05-06
)2020-05-07T00:00:00.000Z
)Applicable Versions:
CMS configuration
https://github.com/betagouv/beta.gouv.fr/blob/master/admin/config.yml
https://github.com/betagouv/beta.gouv.fr/
Additional context
In my specific context, I found a hack to prevent that inappropriate behavior.