Show publication time on newswire

This commit is contained in:
bashrc committed 2020-10-16 10:27:02 +01:00
1 parent 25831b2994
commit e715072886
1 file changed
+1 -1
+1 -1
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', '')