mirror of
https://github.com/searxng/searxng.git
synced 2025-07-24 13:49:26 +02:00
[chore] engines: replace datetime.utcfromtimestamp with datetime.fromtimestamp
This commit is contained in:
parent
9b1f8681a1
commit
28ead13eb9
9 changed files with 10 additions and 10 deletions
|
@ -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'),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue