From 8fd41920f923845bc29ad41612a725225320f684 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 20 Oct 2020 13:04:42 +0100 Subject: [PATCH] Convert time --- webinterface.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/webinterface.py b/webinterface.py index 4e3d1a5e4..935c30fdc 100644 --- a/webinterface.py +++ b/webinterface.py @@ -5631,10 +5631,8 @@ def htmlNewswire(newswire: {}, nickname: str, moderator: bool, """ htmlStr = '' for dateStr, item in newswire.items(): - if '+00:00' not in dateStr: - continue publishedDate = \ - datetime.strptime(dateStr, "%Y-%m-%d %H:%M:%S+00:00") + datetime.strptime(dateStr, "%Y-%m-%d %H:%M:%S%z") dateShown = publishedDate.strftime("%Y-%m-%d %H:%M") dateStrLink = dateStr.replace('T', ' ')