Convert time

merge-requests/8/head
Bob Mottram 2020-10-20 13:04:42 +01:00
parent 719ec92413
commit 8fd41920f9
1 changed files with 1 additions and 3 deletions

View File

@ -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', ' ')