Opened 4 years ago

Closed 4 years ago

#32739 closed Cleanup/optimization (fixed)

Enable timezone handling by default (USE_TZ=True in global settings)

Reported by: Claude Paroz Owned by: Claude Paroz
Component: Core (Other) Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

As using timezones is a recommended good practice by the docs, I think we should set USE_TZ=True in global_settings.py.

This will also allow to remove a setting from the default project settings template.

To achieve that, we'll have to add a warning during the deprecation period when we detect USE_TZ is not overridden in project settings.

Change History (7)

comment:1 by Carlton Gibson, 4 years ago

Triage Stage: UnreviewedAccepted

OK, yes — 10 years should have been long enough for folks to get used to it 😀 +1.

Last edited 4 years ago by Carlton Gibson (previous) (diff)

comment:2 by Claude Paroz, 4 years ago

We might even think of *always* activating timezones (middle-term goal?), but I don't have in mind all possible consequences of such a move.

comment:3 by Claude Paroz, 4 years ago

Has patch: set

comment:4 by Mariusz Felisiak, 4 years ago

Needs documentation: set
Needs tests: set
Owner: changed from nobody to Claude Paroz
Status: newassigned

comment:5 by Claude Paroz, 4 years ago

Needs documentation: unset
Needs tests: unset

comment:6 by Mariusz Felisiak, 4 years ago

Triage Stage: AcceptedReady for checkin

comment:7 by Mariusz Felisiak, 4 years ago

Resolution: fixed
Status: assignedclosed

In 8cd55021:

Fixed #32379 -- Started deprecation toward changing default USE_TZ to True.
Note: See TracTickets for help on using tickets.
Back to Top