1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-12-24 21:35:00 +01:00
Commit Graph

19 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
Kamil Krzyśków
022f14c0eb Fixed UTF-8 with BOM encoding support 2024-03-17 12:04:45 +07:00
squidfunk
b7fc7bad5e
Removed continue reading link when there's nothing more to read 2024-02-15 12:07:47 +07:00
squidfunk
7624e78744
Updated copyright year 2024-01-06 09:27:06 +07:00
squidfunk
b6972b8fa9
Formatting 2023-12-15 10:41:37 +01: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
058b32f2d3
Fixed non-deterministic order of categories in blog plugin 2023-11-24 09:42:57 +01:00
squidfunk
7bdd03a794
Fixed missing titles in views when blog posts have no h1 headings 2023-09-03 11:00:13 +02:00
squidfunk
f2512ded4a
Fixed blog plugin compatibility with Python < 3.9 2023-08-30 16:06:27 +02:00
squidfunk
6839f1cd97
Formatting 2023-08-23 16:02:43 +02:00
squidfunk
92fc7f651f
Formatting 2023-08-23 15:15:11 +02:00
squidfunk
6ee9df6e1a
Fixed rendering in blog plugin with markdown.extensions.toc 2023-08-22 15:20:10 +02:00
squidfunk
0704046536
Fixed compatibility with Python < 3.10 2023-08-22 11:22:56 +02:00
squidfunk
a0cb4a7230
Documentation 2023-08-21 23:50:49 +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