From e58effe89dd8b3e371cefa2d8ec94e51f5a6274b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 22 Nov 2020 18:21:13 +0000 Subject: [PATCH] Append UTC --- newswire.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/newswire.py b/newswire.py index 2842ba11..80c83b18 100644 --- a/newswire.py +++ b/newswire.py @@ -243,10 +243,13 @@ def xml2StrToDict(baseDir: str, domain: str, xmlStr: str, publishedDate = parseFeedDate(pubDate) if publishedDate: + pubDateStr = str(publishedDate) + '+00:00' + 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)