From 246e94493d28a9d8788aa324e2df0ce10b852986 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 27 Aug 2019 23:55:13 +0100 Subject: [PATCH] published date format --- webinterface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webinterface.py b/webinterface.py index d354e07a..fc027516 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1399,7 +1399,7 @@ def individualPostAsHtml(baseDir: str, \ if '+' not in publishedStr: datetimeObject = datetime.strptime(publishedStr,"%Y-%m-%dT%H:%M:%SZ") else: - datetimeObject = datetime.strptime(publishedStr.split('+')[0]+' GMT',"%Y-%m-%dT%H:%M:%SZ") + datetimeObject = datetime.strptime(publishedStr.split('+')[0]+'Z',"%Y-%m-%dT%H:%M:%SZ") else: publishedStr=publishedStr.replace('T',' ').split('.')[0] datetimeObject = parse(publishedStr)