[chore] engines: replace datetime.utcfromtimestamp with datetime.fromtimestamp

This commit is contained in:
Bnyro
2025-02-05 14:35:02 +01:00
committed by Markus Heiser
parent 9b1f8681a1
commit 28ead13eb9
9 changed files with 10 additions and 10 deletions

View File

@@ -112,7 +112,7 @@ def response(resp):
table_content = generate_condition_table(hourly_data)
infobox += f"<h3>{datetime.utcfromtimestamp(time).strftime('%Y-%m-%d %H:%M')}</h3>"
infobox += f"<h3>{datetime.fromtimestamp(time).strftime('%Y-%m-%d %H:%M')}</h3>"
infobox += f"<table><tbody>{table_content}</tbody></table>"
return [{'infobox': 'Open Meteo', 'content': infobox}]