executablebooks / mystmd

Command line tools for working with MyST Markdown.
https://mystmd.org/guide
MIT License
172 stars 50 forks source link

date rendering is a little off #1357

Open parmentelat opened 1 week ago

parmentelat commented 1 week ago

setting a date in the frontmatter results in a date being displayed in all the pages; except that it does not match

1.2.5

Description

if I set

date: 2024 June

I get rendered under the title and authors:

May 31, 2024

and if I set

date: 2024 June 25

I get

June 24, 2024

Proposed solution

either use the date string as is, or make sure any performed date parsing/conversion does not alter the resulting rendering

Additional notes

just in case the timezone could matter, my tests were run in Europe in CEST

parmentelat commented 1 week ago

and if I say

date: 2024

I get

January 1, 1970
rowanc1 commented 1 week ago

Hm, I thought this was fixed in #607. Can you confirm that your theme is up to date?

myst clean --templates
myst start

The 2024 rendering is not going to work, but the other ones look like a timezone issue.

parmentelat commented 1 week ago

myst clean --templates myst start

I did that, as well as

npm i -g @.***

and now I see

myst --version v1.2.9

and as far as I can tell the problem remains