forked from indymedia/epicyon
Handle slightly different date format
parent
de2b514734
commit
33150046ba
|
@ -1169,8 +1169,11 @@ def individualPostAsHtml(baseDir: str, \
|
|||
' </div>'
|
||||
|
||||
publishedStr=postJsonObject['object']['published']
|
||||
if '.' not in publishedStr:
|
||||
datetimeObject = datetime.strptime(publishedStr,"%Y-%m-%dT%H:%M:%SZ")
|
||||
publishedStr=datetimeObject.strftime("%a %b %d, %H:%M")
|
||||
else:
|
||||
publishedStr=publishedStr.replace('T',' ').split('.')[0]
|
||||
footerStr='<span class="'+timeClass+'">'+publishedStr+'</span>\n'
|
||||
|
||||
announceStr=''
|
||||
|
|
Loading…
Reference in New Issue