From 59ab3fd0e9e606d7f0f7ca26609c06ee679ece97 Mon Sep 17 00:00:00 2001 From: Carlton Gibson Date: Thu, 24 Mar 2022 11:09:55 +0100 Subject: Refs #32365 -- Deprecated django.utils.timezone.utc. --- docs/internals/deprecation.txt | 3 +++ docs/ref/utils.txt | 5 +++++ docs/releases/4.1.txt | 3 +++ 3 files changed, 11 insertions(+) (limited to 'docs') 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 ======================= -- cgit v1.3