Opened 3 years ago

Closed 3 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 Changed 3 years ago by Carlton Gibson

Triage Stage: UnreviewedAccepted

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

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

comment:2 Changed 3 years ago by Claude Paroz

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 Changed 3 years ago by Claude Paroz

Has patch: set

comment:4 Changed 3 years ago by Mariusz Felisiak

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

comment:5 Changed 3 years ago by Claude Paroz

Needs documentation: unset
Needs tests: unset

comment:6 Changed 3 years ago by Mariusz Felisiak

Triage Stage: AcceptedReady for checkin

comment:7 Changed 3 years ago by Mariusz Felisiak

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