From 719ec924130408bce04fbbcc8240e0bc2441eb2b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 20 Oct 2020 12:55:49 +0100 Subject: [PATCH] Check date format --- webinterface.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webinterface.py b/webinterface.py index 90202604e..4e3d1a5e4 100644 --- a/webinterface.py +++ b/webinterface.py @@ -5631,6 +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") dateShown = publishedDate.strftime("%Y-%m-%d %H:%M")