1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-23 23:21:00 +01:00
mkdocs-material/material/plugins
perpil a08809a0f3
Fixed blog plugin crashing on dates with timezones (#7708)
* Normalize datetime values to UTC in blog plugin

Fixes #7705

Normalize datetime values to UTC in blog plugin to handle offset-naive and offset-aware datetimes correctly.

* Import `timezone` from `datetime` in `material/plugins/blog/structure/options.py`.
* Modify `pre_validation` method to set `tzinfo=timezone.utc` for datetime values.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/squidfunk/mkdocs-material/issues/7705?shareId=XXXX-XXXX-XXXX-XXXX).

* Normalize datetime values to UTC in blog plugin

Fixes #7705

+ Move changes to src directory
2024-11-19 13:39:37 +01:00
..
blog Fixed blog plugin crashing on dates with timezones (#7708) 2024-11-19 13:39:37 +01:00
group Updated copyright year 2024-01-06 09:27:06 +07:00
info Add warning for dotfiles in info plugin 2024-05-02 23:16:30 +02:00
offline Updated copyright year 2024-01-06 09:27:06 +07:00
privacy Prepare 9.5.44 release 2024-11-05 19:22:39 +01:00
search Fixed inability to reset search pipeline 2024-03-12 09:07:29 +07:00
social Fixed social cards not using site name on homepage (#7608) 2024-10-10 10:06:56 +02:00
tags Fixed tags plugin crashing on numeric tags 2024-05-24 13:39:03 +02:00
__init__.py Updated copyright year 2024-01-06 09:27:06 +07:00