From aa1e481b1095d377d60ce3a4321062cb595fcc2a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 4 Oct 2020 23:16:00 +0100 Subject: [PATCH] Date format --- newswire.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/newswire.py b/newswire.py index ec0ba834f..111ad6bf7 100644 --- a/newswire.py +++ b/newswire.py @@ -145,7 +145,8 @@ def getRSSfromDict(baseDir: str, newswire: {}, None, domainFull, 'Newswire', translate) for published, fields in newswire.items(): - published = published.replace('+00:00', 'Z') + published = published.replace('+00:00', 'Z').strip() + published = published.replace(' ', 'T') try: pubDate = datetime.strptime(published, "%Y-%m-%dT%H:%M:%SZ") except BaseException: