Check date format

merge-requests/8/head
Bob Mottram 2020-10-20 12:55:49 +01:00
parent 7a08940f0d
commit 719ec92413
1 changed files with 2 additions and 0 deletions

View File

@ -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")