As [https://groups.google.com/g/django-developers/c/PtIyadoC-fI per
discussion on mailing list] we will adopt `zoneinfo` in Django 4.0, using
a `pytz` compatibility shim for those who need it until Django 5.0.
In addition, as per [https://groups.google.com/g/django-
developers/c/cXIyCcjMOds/m/L1H2hlHpCgAJ follow-up discussion], we will
make it possible to use `zoneinfo` objects from Django 3.2, leaving any
handling of DST changes to early-adopter user code. (`make_aware()`'s
`is_dst` likely to be deprecated in Django 4.0 — see follow-up discussion
and [https://github.com/django/django/pull/13877#issuecomment-758769902
comment on initial PR].)
--
Ticket URL: <https://code.djangoproject.com/ticket/32365>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by Carlton Gibson):
[https://github.com/django/django/pull/13877 Initial PR for Django 3.2]
--
Ticket URL: <https://code.djangoproject.com/ticket/32365#comment:1>
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/32365#comment:2>
Comment (by Carlton Gibson <carlton@…>):
In [changeset:"10d126198434810529e0220b0c6896ed64ca0e88" 10d12619]:
{{{
#!CommitTicketReference repository=""
revision="10d126198434810529e0220b0c6896ed64ca0e88"
Refs #32365 -- Allowed use of non-pytz timezone implementations.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32365#comment:3>
Comment (by Carlton Gibson <carlton.gibson@…>):
In [changeset:"a5d70cca12aaa1067871eb4e67ab2ed088d1edd6" a5d70cca]:
{{{
#!CommitTicketReference repository=""
revision="a5d70cca12aaa1067871eb4e67ab2ed088d1edd6"
[3.2.x] Refs #32365 -- Allowed use of non-pytz timezone implementations.
Backport of 10d126198434810529e0220b0c6896ed64ca0e88 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32365#comment:4>
* owner: nobody => Carlton Gibson
* status: new => assigned
* has_patch: 0 => 1
* stage: Accepted => Ready for checkin
Comment:
[https://github.com/django/django/pull/14848 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/32365#comment:5>
* status: assigned => closed
* resolution: => fixed
Comment:
In 306607d5b99b6eca6ae2c1e726d8eb32b9b2ca1b:
Fixed #32365 -- Made zoneinfo the default timezone implementation.
Thanks to Adam Johnson, Aymeric Augustin, David Smith, Mariusz Felisiak,
Nick
Pope, and Paul Ganssle for reviews.
--
Ticket URL: <https://code.djangoproject.com/ticket/32365#comment:6>
Comment (by Carlton Gibson <carlton.gibson@…>):
In [changeset:"d46e158ee21cb067a65d44699e6dce00b3dab8e3" d46e158]:
{{{
#!CommitTicketReference repository=""
revision="d46e158ee21cb067a65d44699e6dce00b3dab8e3"
Refs #32365 -- Made migration writer use datetime.timezone.utc.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32365#comment:7>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"bb61f0186d5c490caa44f3e3672d81e14414d33c" bb61f018]:
{{{
#!CommitTicketReference repository=""
revision="bb61f0186d5c490caa44f3e3672d81e14414d33c"
Refs #32365 -- Removed internal uses of utils.timezone.utc alias.
Remaining test case ensures that uses of the alias are mapped
canonically by the migration writer.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32365#comment:8>
Comment (by Carlton Gibson <carlton@…>):
In [changeset:"59ab3fd0e9e606d7f0f7ca26609c06ee679ece97" 59ab3fd0]:
{{{
#!CommitTicketReference repository=""
revision="59ab3fd0e9e606d7f0f7ca26609c06ee679ece97"
Refs #32365 -- Deprecated django.utils.timezone.utc.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32365#comment:9>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"2fad1632571af551d6065d7eced93ffe93a8a945" 2fad163]:
{{{
#!CommitTicketReference repository=""
revision="2fad1632571af551d6065d7eced93ffe93a8a945"
Refs #32365 -- Removed is_dst argument for various methods and functions.
Per deprecation timeline.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32365#comment:11>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"e6f82438d4e3750e8d299bfd79dac98eebe9f1e0" e6f8243]:
{{{
#!CommitTicketReference repository=""
revision="e6f82438d4e3750e8d299bfd79dac98eebe9f1e0"
Refs #32365 -- Removed support for pytz timezones per deprecation
timeline.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32365#comment:10>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"d6816bff73b37af05c968c009419c7c608e37307" d6816bff]:
{{{
#!CommitTicketReference repository=""
revision="d6816bff73b37af05c968c009419c7c608e37307"
Refs #32365 -- Removed django.utils.timezone.utc per deprecation timeline.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32365#comment:12>