forked from indymedia/epicyon
Date format
parent
602714906a
commit
a5291d4106
|
@ -145,8 +145,9 @@ def getRSSfromDict(baseDir: str, newswire: {},
|
||||||
None, domainFull,
|
None, domainFull,
|
||||||
'Newswire', translate)
|
'Newswire', translate)
|
||||||
for published, fields in newswire.items():
|
for published, fields in newswire.items():
|
||||||
|
published = published.replace('+00:00', 'Z')
|
||||||
try:
|
try:
|
||||||
pubDate = datetime.strptime(published, "%Y-%m-%dT%H:%M:%S+00:00")
|
pubDate = datetime.strptime(published, "%Y-%m-%dT%H:%M:%SZ")
|
||||||
except BaseException:
|
except BaseException:
|
||||||
continue
|
continue
|
||||||
rssStr += '<item>\n'
|
rssStr += '<item>\n'
|
||||||
|
|
Loading…
Reference in New Issue