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