-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Date shifted by timezone when using date_from_meta
#133
Comments
Hello @squidfunk, Thanks for your interest and your kind comment. You're right, by default, datetimes should be treated in UTC. I've never figured it out because I'm used to deploy Mkdocs websites with CI/CD (GitHub or GitLab). What about an option to specify the default timezone to use? |
An option would definitely be awesome, ideally defaulting to UTC 😊 |
Hi @squidfunk, I'm working on the feature in #142. For now it's only compatible with Python 3.9+. Feel free to test if you can/want, feedback are welcome. Thanks for you patience. |
I've finally came around testing the newest version and can confirm that the problem I reported is fixed! |
First of all, great plugin! Material for MkDocs will get blog support tomorrow, and I'm finishing up the last small little details to make it awesome. Your plugin will be advertised on the documentation for adding RSS support, as it's the best one out there.
I've encountered a problem where the dates of blog articles are not correctly computed when
date_from_meta
is used. my configuration inmkdocs.yml
is as follows:When I set a date in a blog article, the computed time is shifted by the UTC offset of the current timezone. For example:
Becomes:
IMHO, dates should be treated as UTC. I'm currently in UTC+2, so this seems to be the problem.
The text was updated successfully, but these errors were encountered: