forked from indymedia/epicyon
published date format
parent
6862c1930b
commit
246e94493d
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue