Changes between Initial Version and Version 1 of Ticket #37013
- Timestamp:
- Mar 30, 2026, 2:22:34 PM (4 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #37013 – Description
initial v1 1 The `Trunc()` and `Extract()` database functions apply timezone conversions if `USE_TZ = True`. When the `tzinfo` argument is omitted, the timezone is inferred from `settings.TIME_ZONE`. This information is not captured by migrations, meaning that if `settings.TIME_ZONE` changes over the life of a project, then the database may never receive a corresponding update.1 The `Trunc()` and `Extract()` database functions apply timezone conversions if `USE_TZ = True`. When the `tzinfo` argument is omitted, the timezone is inferred from `settings.TIME_ZONE`. If these functions are used in a `db_default` expression, this information is not captured by migrations, meaning that if `settings.TIME_ZONE` changes over the life of a project, then the database may never receive a corresponding update. 2 2 3 3 {{{#!py