diff options
| author | Carlton Gibson <carlton.gibson@noumenal.es> | 2022-03-24 11:09:55 +0100 |
|---|---|---|
| committer | Carlton Gibson <carlton@noumenal.es> | 2022-03-29 14:47:44 +0200 |
| commit | 59ab3fd0e9e606d7f0f7ca26609c06ee679ece97 (patch) | |
| tree | 9014f24e170c210492e65fe54bcbf236e7342c4a /docs | |
| parent | baf9604ed8fed3e6e7ddfaca2d83c377c81399ae (diff) | |
Refs #32365 -- Deprecated django.utils.timezone.utc.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/internals/deprecation.txt | 3 | ||||
| -rw-r--r-- | docs/ref/utils.txt | 5 | ||||
| -rw-r--r-- | docs/releases/4.1.txt | 3 |
3 files changed, 11 insertions, 0 deletions
diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt index 31eb732297..ab147725c1 100644 --- a/docs/internals/deprecation.txt +++ b/docs/internals/deprecation.txt @@ -94,6 +94,9 @@ details on these changes. ``django.contrib.auth.views.LogoutView`` and ``django.contrib.auth.views.logout_then_login()`` will be removed. +* The ``django.utils.timezone.utc`` alias to ``datetime.timezone.utc`` will be + removed. + .. _deprecation-removed-in-4.1: 4.1 diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt index 8c12294cd6..a2be25f168 100644 --- a/docs/ref/utils.txt +++ b/docs/ref/utils.txt @@ -843,6 +843,11 @@ appropriate entities. :class:`~datetime.tzinfo` instance that represents UTC. + .. deprecated:: 4.1 + + This is an alias to :attr:`datetime.timezone.utc`. Use + :attr:`datetime.timezone.utc` directly. + .. function:: get_fixed_timezone(offset) Returns a :class:`~datetime.tzinfo` instance that represents a time zone diff --git a/docs/releases/4.1.txt b/docs/releases/4.1.txt index eb4bde652b..8fc81e5ee7 100644 --- a/docs/releases/4.1.txt +++ b/docs/releases/4.1.txt @@ -545,6 +545,9 @@ Miscellaneous :meth:`.RemoteUserBackend.configure_user`. Support for ``RemoteUserBackend`` subclasses that do not accept this argument is deprecated. +* The :data:`django.utils.timezone.utc` alias to :attr:`datetime.timezone.utc` + is deprecated. Use :attr:`datetime.timezone.utc` directly. + Features removed in 4.1 ======================= |
