weather_api: Fix timestamp str
This commit is contained in:
parent
b1f76c7c3e
commit
1a0377ad5d
@ -204,7 +204,7 @@ class WeatherAPI:
|
||||
|
||||
def read_timestamp(self, timestamp, *args, **kwargs):
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user