weather_api: Fix timestamp str
This commit is contained in:
parent
b1f76c7c3e
commit
1a0377ad5d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue