-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Blog Plugin still errors with TypeError: can't compare offset-naive and offset-aware datetimes #7748
Comments
Thanks for reporting. Help appreciated! It's likely the same fix as for #7725. I did not expect this to be such a nuisance to fix. I'm currently short on time, so if anybody has a few minutes on his hands, PR appreciated. |
Working on a fix, it appears with |
PR #7749 out and tested against the repro. I've looked for other instances of datetime and think I've finally got them all. |
Keeping open until released. |
Released as part of 9.5.47. |
Just want to quickly confirm that the CI doesn't error anymore, so this issue really seems to be fixed now. |
Context
Continuation of #7725 which seems to still be present.
Bug description
When executing a build does the build error with
TypeError: can't compare offset-naive and offset-aware datetime
Full Stacktrace from
mkdocs build
:The issue is most likely the usage of
date: yyyy-mm-dd
without any timezones or time in general.Note: Only
mkdocs build
is affected.mkdocs serve
runs without any errors reported.Related links
Reproduction
9.5.46-blog-date-issue.zip
Steps to reproduce
date
frontmatter in the formatyyyy-mm-dd
mkdocs build
Browser
No response
Before submitting
The text was updated successfully, but these errors were encountered: