Refactor the implementations of tzinfo classes
|Reported by:||Aymeric Augustin||Owned by:||Aymeric Augustin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Since the merge of the time zone support branch,
django.utils.timezone provide subtly different implementations of a tzinfo subclass representing local time.
The reason is explained at the bottom of this message. In short, the former is used for display and focuses on robustness; the latter is used for time zone support and focuses on correctness.
django.utils.tzinfo should be refactored and merged into
django.utils.timezone, but that's probably not doable in a totally backwards-compatible fashion.
Change History (7)
comment:1 Changed 5 years ago by
|Keywords:||timezone tzinfo added|
|Triage Stage:||Unreviewed → Accepted|