mirror of https://gitlab.com/bashrc2/epicyon
Check that offset exists
parent
758380dade
commit
a998c0b321
|
@ -191,6 +191,7 @@ def parseFeedDate(pubDate: str) -> str:
|
|||
pubDateStr = None
|
||||
if publishedDate:
|
||||
offset = publishedDate.utcoffset()
|
||||
if offset:
|
||||
publishedDate = publishedDate - offset
|
||||
# convert local date to UTC
|
||||
publishedDate = publishedDate.replace(tzinfo=timezone.utc)
|
||||
|
|
Loading…
Reference in New Issue