Skip to content

Commit

Permalink
fix: restore support for python 3.9 and 3.10.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Feb 17, 2025
1 parent ce9171a commit d7d8808
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/web/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import filetype # type: ignore[import-untyped]

from collections import defaultdict
from datetime import date, datetime, timedelta, UTC
from datetime import date, datetime, timedelta, timezone
from importlib.metadata import version
from io import BytesIO, StringIO
from typing import Any, TypedDict
Expand Down Expand Up @@ -283,7 +283,7 @@ def get_icon(icon_id: str) -> Icon | None:

all_timezones_set: dict[str, str] = {}
for tzname in sorted(available_timezones()):
if offset := ZoneInfo(tzname).utcoffset(datetime.now(UTC)):
if offset := ZoneInfo(tzname).utcoffset(datetime.now(timezone.utc)):
all_timezones_set[tzname] = f"{offset.total_seconds() / (60 * 60):+06.2f}"


Expand Down

0 comments on commit d7d8808

Please sign in to comment.