Skip to content

Commit

Permalink
Use datetime.timezone.utc to support 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Nov 27, 2024
1 parent 99a791b commit 27ce271
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lvmopstools/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def format_time(time: str | float) -> str:
time = (
datetime.datetime.fromtimestamp(
time,
tz=datetime.UTC,
tz=datetime.timezone.utc,
)
.isoformat(timespec="seconds")
.replace("+00:00", "")
Expand Down

0 comments on commit 27ce271

Please sign in to comment.