mirror of https://gitlab.com/bashrc2/epicyon
Check date format
parent
7a08940f0d
commit
719ec92413
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue