From 2d38065e42ec90da3615efd77e84350a5a08a818 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 12 Oct 2020 17:34:56 +0100 Subject: [PATCH] Date format --- webinterface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webinterface.py b/webinterface.py index ac223445..da9dc37e 100644 --- a/webinterface.py +++ b/webinterface.py @@ -5512,7 +5512,7 @@ def htmlNewswire(newswire: str, nickname: str, moderator: bool, htmlStr = '' for dateStr, item in newswire.items(): publishedDate = \ - datetime.strptime(dateStr, "%Y-%m-%dT%H:%M:%SZ") + datetime.strptime(dateStr, "%Y-%m-%d %H:%M:%S+00:00") dateStrLink = publishedDate.strftime("%Y-%m-%d") moderatedItem = item[5] if moderatedItem and 'vote:' + nickname in item[2]: