weather_api: Fix timestamp str

This commit is contained in:
nemunaire 2023-08-17 00:02:48 +02:00
parent b1f76c7c3e
commit 1a0377ad5d

View File

@ -204,7 +204,7 @@ class WeatherAPI:
def read_timestamp(self, timestamp, *args, **kwargs): def read_timestamp(self, timestamp, *args, **kwargs):
PARIS = ZoneInfo("Europe/Paris") PARIS = ZoneInfo("Europe/Paris")
return datetime.fromtimestamp(timestamp, tz=timezone.utc).astimezone(PARIS) return datetime.fromtimestamp(int(timestamp), tz=timezone.utc).astimezone(PARIS)
#WeatherAPI = TomorrowAPI #WeatherAPI = TomorrowAPI