mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-04-05 19:58:09 +08:00
fix: 将RSS中的发布日期转为本地时区
This commit is contained in:
@@ -384,6 +384,9 @@ class RssHelper:
|
||||
pubdate = ""
|
||||
if pubdate_nodes and pubdate_nodes[0].text:
|
||||
pubdate = StringUtils.get_time(pubdate_nodes[0].text)
|
||||
if pubdate is not None:
|
||||
# 转为本地时区
|
||||
pubdate = pubdate.astimezone(tz=None)
|
||||
|
||||
# 获取豆瓣昵称
|
||||
nickname_nodes = item.xpath('.//*[local-name()="creator"]')
|
||||
|
||||
Reference in New Issue
Block a user