Date format

main
Bob Mottram 2020-01-12 21:29:49 +00:00
parent ccab02a2c5
commit 67bbf61d82
1 changed files with 2 additions and 0 deletions

View File

@ -71,6 +71,8 @@ def updatePostSchedule(baseDir: str,handle: str,httpd,maxScheduledPosts: int) ->
# create the new index file
indexLines.append(line)
# convert string date to int
if '+' in dateStr:
dateStr=dateStr.split('+')[0]+'Z'
postTime= \
datetime.datetime.strptime(dateStr,"%Y-%m-%dT%H:%M:%S%z")
postDaysSinceEpoch= \