From 27ce27123d5383be8bc71453de5400b49e2b4841 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20S=C3=A1nchez-Gallego?= Date: Wed, 27 Nov 2024 18:53:13 +0000 Subject: [PATCH] Use datetime.timezone.utc to support 3.10 --- src/lvmopstools/weather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lvmopstools/weather.py b/src/lvmopstools/weather.py index da4ab59..4388b69 100644 --- a/src/lvmopstools/weather.py +++ b/src/lvmopstools/weather.py @@ -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", "")