forked from indymedia/epicyon
Calculate offset
parent
3812131758
commit
758380dade
|
@ -190,7 +190,8 @@ def parseFeedDate(pubDate: str) -> str:
|
||||||
|
|
||||||
pubDateStr = None
|
pubDateStr = None
|
||||||
if publishedDate:
|
if publishedDate:
|
||||||
publishedDate = publishedDate - publishedDate.utcoffset()
|
offset = publishedDate.utcoffset()
|
||||||
|
publishedDate = publishedDate - offset
|
||||||
# convert local date to UTC
|
# convert local date to UTC
|
||||||
publishedDate = publishedDate.replace(tzinfo=timezone.utc)
|
publishedDate = publishedDate.replace(tzinfo=timezone.utc)
|
||||||
pubDateStr = str(publishedDate)
|
pubDateStr = str(publishedDate)
|
||||||
|
|
Loading…
Reference in New Issue