Check for ending of time

main2
Bob Mottram 2019-10-10 14:24:29 +01:00
parent 34618f64a9
commit 65b8a744d1
1 changed files with 4 additions and 1 deletions

View File

@ -535,6 +535,9 @@ def createPostBase(baseDir: str,nickname: str, domain: str, port: int, \
eventName=content eventName=content
eventDateStr=eventDate eventDateStr=eventDate
if eventTime: if eventTime:
if eventTime.endswith('Z'):
eventDateStr=eventDate+'T'+eventTime
else:
eventDateStr=eventDate+'T'+eventTime+':00Z' eventDateStr=eventDate+'T'+eventTime+':00Z'
else: else:
eventDateStr=eventDate+'T00:00:00Z' eventDateStr=eventDate+'T00:00:00Z'