Closed naltun closed 1 year ago
Probably it's due the timezone. The date 2023-01-05
is interpreted as 2023-01-05 00:00:00
, and if your timezone is -1h
or less, it becomes to one day before (See this https://github.com/lumeland/lume/issues/58)
Try defining the TZ
environment variable to your own timezone or Z
(for example TZ=Z deno task serve
)
@oscarotero I will try that when I get a chance. I deployed to Deno Deploy and it's displaying the date appropriately. I believe your observation is correct. Feel free to close.
Edit: I will close this myself. Thank you for linking the issue.
I have the following in
~/workspace/my-blog/posts/whoami.md
:When viewing the generated post, I get this:
Notice how the date is
January 4th, 2023
, although the date is specified as2023-01-05
.When viewing my local datetime, I get January 5th: