Skip to content

Fix naive DatetimeField timezone drift - #2277

Merged
waketzheng merged 9 commits into
tortoise:developfrom
TheRodzz:fix-timezone-naive-drift
Sep 11, 2026
Merged

waketzheng merged 9 commits into
tortoise:developfrom
TheRodzz:fix-timezone-naive-drift

Conversation

@TheRodzz

Copy link
Copy Markdown
Contributor

Fixes #2273. Interprets naive datetime inputs with the configured timezone rather than unconditionally UTC, making it symmetric with to_python_value.

This fixes tortoise#2273 by ensuring naive datetimes are interpreted with the configured timezone rather than unconditionally UTC, making it symmetric with to_python_value.
@codspeed

codspeed Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 24 untouched benchmarks


Comparing TheRodzz:fix-timezone-naive-drift (628c88d) with develop (f6f072b)

Open in CodSpeed

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.

DatetimeField timezone handling does not prioritize the globally configured timezone

2 participants