Skip to content

Set timezone to UTC when draft_if_future_date: true Fixes #7748#7749

Merged
squidfunk merged 2 commits intosquidfunk:masterfrom
perpil:blog-UTC-fix
Nov 25, 2024
Merged

Set timezone to UTC when draft_if_future_date: true Fixes #7748#7749
squidfunk merged 2 commits intosquidfunk:masterfrom
perpil:blog-UTC-fix

Conversation

@perpil
Copy link
Copy Markdown
Contributor

@perpil perpil commented Nov 25, 2024

I've tested this with the repro in #7748 and also done a grep for other instances of datetime in the plugin.

@perpil perpil marked this pull request as ready for review November 25, 2024 16:32
Comment thread material/plugins/blog/plugin.py Outdated
@Andre601
Copy link
Copy Markdown
Contributor

Tested it with pip installing from refs/pull/7749/head and can confirm the error doesn't show anymore.

@squidfunk
Copy link
Copy Markdown
Owner

Perfect, thanks again for fixing!

@squidfunk squidfunk merged commit 6288b26 into squidfunk:master Nov 25, 2024
@perpil perpil deleted the blog-UTC-fix branch November 25, 2024 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants