Closed perpil closed 1 week ago
FWIW, in MkDocs itself, a similar issue with timezones mkdocs/mkdocs#3794 was resolved in roughly the same way mkdocs/mkdocs#3795 several months ago.
Thanks for the PR, and @vedranmiletic for linking the related issue. Looks sensible!
Ah, one problem: please make the changes in the src
folder as well. The material
folder is built from it, as mentioned in our theme development guide:
[!WARNING] Never make any changes in the
material
directory, as the contents of this directory are automatically generated from thesrc
directory and will be overwritten when the theme is built.
Ah! I'd forgotten since last time. I've updated the PR to only modify the src
.
Thanks!
Fixes #7705
Normalize datetime values to UTC in blog plugin to make the datetime object offset-aware.
timezone
fromdatetime
inmaterial/plugins/blog/structure/options.py
.pre_validation
method to settzinfo=timezone.utc
for datetime values.For more details, open the Copilot Workspace session.