mirror of https://gitlab.com/bashrc2/epicyon
Show publication time on newswire
parent
25831b2994
commit
e715072886
|
@ -5597,7 +5597,7 @@ def htmlNewswire(newswire: str, nickname: str, moderator: bool,
|
||||||
for dateStr, item in newswire.items():
|
for dateStr, item in newswire.items():
|
||||||
publishedDate = \
|
publishedDate = \
|
||||||
datetime.strptime(dateStr, "%Y-%m-%d %H:%M:%S+00:00")
|
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 = dateStr.replace('T', ' ')
|
||||||
dateStrLink = dateStrLink.replace('Z', '')
|
dateStrLink = dateStrLink.replace('Z', '')
|
||||||
|
|
Loading…
Reference in New Issue