Open
Description
Describe the bug
I have a field like this:
{
"title": "Publishing date",
"name": "date",
"type": "datetime",
"dateFormat": "yyyy-MM-dd'T'HH:mm:ssXXX",
"default": "{{now}}",
"isPublishDate": true
}
When I create a new content with this from the dashboard, the date format is not respected and it gives me something like date: 2025-03-17T05:47:48Z
but when I click "Now" in the Front Matter sidebar, it gives me the correct format like date: 2025-03-17T11:18:47+05:30
To Reproduce
Steps to reproduce the behavior:
- Configure a date format like the one above.
- Create a new content.
- The date in the newly generated content front matter will be incorrectly formatted.
- Click "Now" in the date field in the Front Matter sidebar, it gives the date in the correct format.
Expected behavior
Instead, I would think Front Matter would respect the configured format when creating new content initially without having to manually set the date through the sidebar.
Device:
- Front Matter CMS Version: 10.8.0