From: Aarni Koskela Date: Wed, 25 Jan 2023 19:43:16 +0000 (+0200) Subject: Use standard library UTC (#957) X-Git-Tag: v2.12.0~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50e1857b3b4469f9dc652849bf2fa053739bcf61;p=thirdparty%2Fbabel.git Use standard library UTC (#957) --- diff --git a/babel/dates.py b/babel/dates.py index ce79318d..83ce7286 100644 --- a/babel/dates.py +++ b/babel/dates.py @@ -51,11 +51,7 @@ if TYPE_CHECKING: NO_INHERITANCE_MARKER = '\u2205\u2205\u2205' - -if pytz: - UTC = pytz.utc -else: - UTC = zoneinfo.ZoneInfo('UTC') +UTC = datetime.timezone.utc LOCALTZ = localtime.LOCALTZ LC_TIME = default_locale('LC_TIME')