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/9gag.py | |
| parent | 9b1f8681a12b411f64620d8d15fcfc49a67b365f (diff) | |
[chore] engines: replace datetime.utcfromtimestamp with datetime.fromtimestamp
Diffstat (limited to 'searx/engines/9gag.py')
| -rw-r--r-- | searx/engines/9gag.py | 4 |
1 files changed, 2 insertions, 2 deletions
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'), } |