]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Use standard library UTC (#957)
authorAarni Koskela <akx@iki.fi>
Wed, 25 Jan 2023 19:43:16 +0000 (21:43 +0200)
committerGitHub <noreply@github.com>
Wed, 25 Jan 2023 19:43:16 +0000 (21:43 +0200)
babel/dates.py

index ce79318d0ca4a3398efae98964d842e9ad6dd754..83ce728621762c68c5f4fec62290f4aae0d25d67 100644 (file)
@@ -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')