The date/time written to file does not match the selected date/time in the FM UI datepicker.
I didn't see anything in the docs about how to set this up for a consistent time/date in the front matter.
The date/time written to file does not match the selected date/time in the FM UI datepicker.

I didn't see anything in the docs about how to set this up for a consistent time/date in the front matter.
<!-- github-sync-id:1164641474 -->
The date picker uses the UTC time, but shows it in the local time. Dates get stored by default in UTC - ISO format. That is why they do not include the timezone.
If you use the frontMatter.taxonomy.dateFormat setting, you can match the dates.
The date picker uses the UTC time, but shows it in the local time. Dates get stored by default in UTC - ISO format. That is why they do not include the timezone.
If you use the `frontMatter.taxonomy.dateFormat` setting, you can match the dates.

<!-- github-comment-id:1063796689 -->
I haven't tried it yet. I didn't see an obvious way to make the date/time
the UI writes to the front matter date field in central US timezone. I'm
sure it works right, but I don't know for sure.
On Tue, Mar 29, 2022, 23:24 Elio Struyf @.***> wrote:
I haven't tried it yet. I didn't see an obvious way to make the date/time
the UI writes to the front matter date field in central US timezone. I'm
sure it works right, but I don't know for sure.
On Tue, Mar 29, 2022, 23:24 Elio Struyf ***@***.***> wrote:
> @bwklein <https://github.com/bwklein> can this be closed? Or is there
> still something required?
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/estruyf/vscode-front-matter/issues/285#issuecomment-1082671379>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AC4LF7T4Z64THWLEWHABWODVCPXQXANCNFSM5QLHCT2A>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
<!-- github-comment-id:1082689669 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The date/time written to file does not match the selected date/time in the FM UI datepicker.
I didn't see anything in the docs about how to set this up for a consistent time/date in the front matter.
The date picker uses the UTC time, but shows it in the local time. Dates get stored by default in UTC - ISO format. That is why they do not include the timezone.
If you use the
frontMatter.taxonomy.dateFormatsetting, you can match the dates.Perfect
@bwklein can this be closed? Or is there still something required?
I haven't tried it yet. I didn't see an obvious way to make the date/time
the UI writes to the front matter date field in central US timezone. I'm
sure it works right, but I don't know for sure.
On Tue, Mar 29, 2022, 23:24 Elio Struyf @.***> wrote:
No problem, I'll leave it open for you to check 🤓
Works as expected.