Open Andre601 opened 4 days ago
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 draft_if_future_date: true
it is still using non timezone aware dates.
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.
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
7725
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