1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-12-19 02:46:00 +01:00
Commit Graph

9 Commits

Author SHA1 Message Date
perpil
eee4934efd
Fixed blog plugin crashing on missing timezone (regression) (#7730)
* Default timezone to UTC for blog plugin created date

Fix for https://github.com/squidfunk/mkdocs-material/issues/7725

* Fix variable name

* Run build
2024-11-20 18:22:48 +01:00
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
squidfunk
7624e78744
Updated copyright year 2024-01-06 09:27:06 +07:00
squidfunk
0d72b5f57e
Formatting 2023-12-07 21:50:13 +01:00
squidfunk
5b70a0cfcb
Fixe time being dropped from blog post dates 2023-12-07 21:46:36 +01:00
squidfunk
f855a67384
Merged features tied to 'Goat's Horn' funding goal 2023-12-07 10:48:42 +01:00
squidfunk
f2512ded4a
Fixed blog plugin compatibility with Python < 3.9 2023-08-30 16:06:27 +02:00
squidfunk
7099ea60a9
Fixed several errors in blog plugin 2023-08-21 23:01:37 +02:00
squidfunk
38b7282b20
Refactored blog plugin (+ other plugins) 2023-08-21 17:45:32 +02:00