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/9gag.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'searx/engines/9gag.py') diff --git a/searx/engines/9gag.py b/searx/engines/9gag.py index 962e0af64..5d1b6a6bd 100644 --- a/searx/engines/9gag.py +++ b/searx/engines/9gag.py @@ -51,7 +51,7 @@ def response(resp): 'url': result['url'], 'title': result['title'], 'content': result['description'], - 'publishedDate': datetime.utcfromtimestamp(result['creationTs']), + 'publishedDate': datetime.fromtimestamp(result['creationTs']), 'img_src': result['images']['image700']['url'], 'thumbnail_src': thumbnail, } @@ -63,7 +63,7 @@ def response(resp): 'url': result['url'], 'title': result['title'], 'content': result['description'], - 'publishedDate': datetime.utcfromtimestamp(result['creationTs']), + 'publishedDate': datetime.fromtimestamp(result['creationTs']), 'thumbnail': thumbnail, 'iframe_src': result['images'].get('image460sv', {}).get('url'), } -- cgit v1.2.3