forked from indymedia/epicyon
Date format
parent
ccab02a2c5
commit
67bbf61d82
|
@ -71,6 +71,8 @@ def updatePostSchedule(baseDir: str,handle: str,httpd,maxScheduledPosts: int) ->
|
||||||
# create the new index file
|
# create the new index file
|
||||||
indexLines.append(line)
|
indexLines.append(line)
|
||||||
# convert string date to int
|
# convert string date to int
|
||||||
|
if '+' in dateStr:
|
||||||
|
dateStr=dateStr.split('+')[0]+'Z'
|
||||||
postTime= \
|
postTime= \
|
||||||
datetime.datetime.strptime(dateStr,"%Y-%m-%dT%H:%M:%S%z")
|
datetime.datetime.strptime(dateStr,"%Y-%m-%dT%H:%M:%S%z")
|
||||||
postDaysSinceEpoch= \
|
postDaysSinceEpoch= \
|
||||||
|
|
Loading…
Reference in New Issue