From 28ead13eb95a8d852b27436733c8272e7f67dea7 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Wed, 5 Feb 2025 14:35:02 +0100 Subject: [chore] engines: replace datetime.utcfromtimestamp with datetime.fromtimestamp --- searx/engines/hackernews.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'searx/engines/hackernews.py') diff --git a/searx/engines/hackernews.py b/searx/engines/hackernews.py index d3ba47f65..46c8cae8d 100644 --- a/searx/engines/hackernews.py +++ b/searx/engines/hackernews.py @@ -87,7 +87,7 @@ def response(resp): "content": hit.get("url") or hit.get("comment_text") or hit.get("story_text") or "", "metadata": metadata, "author": hit["author"], - "publishedDate": datetime.utcfromtimestamp(hit["created_at_i"]), + "publishedDate": datetime.fromtimestamp(hit["created_at_i"]), } ) -- cgit v1.2.3