diff --git a/newswire.py b/newswire.py index 5ef11b0c..c79a47c8 100644 --- a/newswire.py +++ b/newswire.py @@ -313,10 +313,13 @@ def atomFeedToDict(baseDir: str, domain: str, xmlStr: str, publishedDate = parseFeedDate(pubDate) if publishedDate: + pubDateStr = str(publishedDate) + if not pubDateStr.endswith('+00:00'): + pubDateStr += '+00:00' postFilename = '' votesStatus = [] addNewswireDictEntry(baseDir, domain, - result, str(publishedDate), + result, pubDateStr, title, link, votesStatus, postFilename, description, moderated, mirrored) @@ -377,10 +380,13 @@ def atomFeedYTToDict(baseDir: str, domain: str, xmlStr: str, publishedDate = parseFeedDate(pubDate) if publishedDate: + pubDateStr = str(publishedDate) + if not pubDateStr.endswith('+00:00'): + pubDateStr += '+00:00' postFilename = '' votesStatus = [] addNewswireDictEntry(baseDir, domain, - result, str(publishedDate), + result, pubDateStr, title, link, votesStatus, postFilename, description, moderated, mirrored)