From a4ae42e90fd45b6816aa47dec57a9bd00343a654 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Wed, 25 Jan 2023 21:20:54 +0200 Subject: [PATCH] Use standard library UTC --- babel/dates.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/babel/dates.py b/babel/dates.py index ce79318d0..83ce72862 100644 --- a/babel/dates.py +++ b/babel/dates.py @@ -51,11 +51,7 @@ 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')