#20969 closed Bug (invalid)
ValuesQuerySet converts datetimes to UTC
Description ¶
Note:
See TracTickets
for help on using tickets.
Reported by: | jhatch28@… | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | 1.4 |
Severity: | Normal | Keywords: | valuesqueryset datetime |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Pull Requests: | How to create a pull request | ||
Resolution: | → invalid |
---|---|
Status: | new → closed |
© 2005-2025 Django SoftwareFoundation unless otherwise noted. Django is a registered trademark of the Django Software Foundation.
The comments in this tracker aren't normative. Specifically the comments on #9619 predate the timezone support that was introduced in Django 1.4.
You're seeing the expected behavior when
settings.USE_TZ = True
. Django doesn't offset back to UTC, it gets the values directly in UTC.Please reopen if you think that Django's behavior is wrong or inconsistent with the documentation.