published date format

master
Bob Mottram 2019-08-27 23:55:13 +01:00
parent 6862c1930b
commit 246e94493d
1 changed files with 1 additions and 1 deletions

View File

@ -1399,7 +1399,7 @@ def individualPostAsHtml(baseDir: str, \
if '+' not in publishedStr: if '+' not in publishedStr:
datetimeObject = datetime.strptime(publishedStr,"%Y-%m-%dT%H:%M:%SZ") datetimeObject = datetime.strptime(publishedStr,"%Y-%m-%dT%H:%M:%SZ")
else: else:
datetimeObject = datetime.strptime(publishedStr.split('+')[0]+' GMT',"%Y-%m-%dT%H:%M:%SZ") datetimeObject = datetime.strptime(publishedStr.split('+')[0]+'Z',"%Y-%m-%dT%H:%M:%SZ")
else: else:
publishedStr=publishedStr.replace('T',' ').split('.')[0] publishedStr=publishedStr.replace('T',' ').split('.')[0]
datetimeObject = parse(publishedStr) datetimeObject = parse(publishedStr)