mirror of
https://github.com/searxng/searxng.git
synced 2026-05-31 23:17:16 +02:00
[chore] engines: replace datetime.utcfromtimestamp with datetime.fromtimestamp
This commit is contained in:
@@ -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'),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user