Show publication time on newswire

main
Bob Mottram 2020-10-16 10:27:02 +01:00
parent 25831b2994
commit e715072886
1 changed files with 1 additions and 1 deletions

View File

@ -5597,7 +5597,7 @@ def htmlNewswire(newswire: str, nickname: str, moderator: bool,
for dateStr, item in newswire.items():
publishedDate = \
datetime.strptime(dateStr, "%Y-%m-%d %H:%M:%S+00:00")
dateShown = publishedDate.strftime("%Y-%m-%d")
dateShown = publishedDate.strftime("%Y-%m-%d %H:%M")
dateStrLink = dateStr.replace('T', ' ')
dateStrLink = dateStrLink.replace('Z', '')