mirror of
https://github.com/searxng/searxng.git
synced 2025-08-18 09:46:44 +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
|
@ -82,7 +82,7 @@ def response(resp):
|
|||
video_id = item["aid"]
|
||||
unix_date = item["pubdate"]
|
||||
|
||||
formatted_date = datetime.utcfromtimestamp(unix_date)
|
||||
formatted_date = datetime.fromtimestamp(unix_date)
|
||||
formatted_duration = format_duration(item["duration"])
|
||||
iframe_url = f"https://player.bilibili.com/player.html?aid={video_id}&high_quality=1&autoplay=false&danmaku=0"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue