Skip to content

Commit 50e1857

Browse files
authored
Use standard library UTC (#957)
1 parent 2c1875e commit 50e1857

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

babel/dates.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,7 @@
5151

5252
NO_INHERITANCE_MARKER = '\u2205\u2205\u2205'
5353

54-
55-
if pytz:
56-
UTC = pytz.utc
57-
else:
58-
UTC = zoneinfo.ZoneInfo('UTC')
54+
UTC = datetime.timezone.utc
5955
LOCALTZ = localtime.LOCALTZ
6056

6157
LC_TIME = default_locale('LC_TIME')

0 commit comments

Comments
 (0)