mirror of
https://github.com/searxng/searxng.git
synced 2025-12-26 13:40:03 +00:00
[chore] engines: replace datetime.utcfromtimestamp with datetime.fromtimestamp
This commit is contained in:
@@ -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}]
|
||||
|
||||
Reference in New Issue
Block a user