diff --git a/webinterface.py b/webinterface.py index 9ff65b81..7132bfda 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1169,8 +1169,11 @@ def individualPostAsHtml(baseDir: str, \ ' ' publishedStr=postJsonObject['object']['published'] - datetimeObject = datetime.strptime(publishedStr,"%Y-%m-%dT%H:%M:%SZ") - publishedStr=datetimeObject.strftime("%a %b %d, %H:%M") + 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=''+publishedStr+'\n' announceStr=''