diff options
| author | Bnyro <bnyro@tutanota.com> | 2025-02-05 14:35:02 +0100 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2025-02-07 17:19:00 +0100 |
| commit | 28ead13eb95a8d852b27436733c8272e7f67dea7 (patch) | |
| tree | ad7cbc67dcf6c5ef156df560217afdf5c96e1b3a /searx/engines/open_meteo.py | |
| parent | 9b1f8681a12b411f64620d8d15fcfc49a67b365f (diff) | |
[chore] engines: replace datetime.utcfromtimestamp with datetime.fromtimestamp
Diffstat (limited to 'searx/engines/open_meteo.py')
| -rw-r--r-- | searx/engines/open_meteo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/open_meteo.py b/searx/engines/open_meteo.py index 66817d5c9..c1b0ca567 100644 --- a/searx/engines/open_meteo.py +++ b/searx/engines/open_meteo.py @@ -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}] |