[chore] engines: replace datetime.utcfromtimestamp with datetime.fromtimestamp

This commit is contained in:
Bnyro 2025-02-05 14:35:02 +01:00 committed by Markus Heiser
parent 9b1f8681a1
commit 28ead13eb9
9 changed files with 10 additions and 10 deletions

View file

@ -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'),
}