diff options
author | Aarni Koskela <akx@iki.fi> | 2023-01-25 21:43:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-25 21:43:16 +0200 |
commit | 50e1857b3b4469f9dc652849bf2fa053739bcf61 (patch) | |
tree | 56a5175727301645b2c457ecc7ca792a71e5bc2d | |
parent | 2c1875e57415974a76fbe022c16b7893576d185b (diff) | |
download | babel-50e1857b3b4469f9dc652849bf2fa053739bcf61.tar.gz |
Use standard library UTC (#957)
-rw-r--r-- | babel/dates.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/babel/dates.py b/babel/dates.py index ce79318..83ce728 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') |