Append seconds

main2
Bob Mottram 2019-10-10 14:22:38 +01:00
parent 892700e057
commit 34618f64a9
2 changed files with 1 additions and 5 deletions

View File

@ -2559,10 +2559,6 @@ class PubServer(BaseHTTPRequestHandler):
if postType=='newdm':
messageJson=None
if '@' in fields['message']:
if self.server.debug:
print('DEBUG: Event Date - '+str(fields['eventDate']))
print('DEBUG: Event Time - '+str(fields['eventTime']))
print('DEBUG: Event Location - '+str(fields['location']))
messageJson= \
createDirectMessagePost(self.server.baseDir, \
nickname, \

View File

@ -535,7 +535,7 @@ def createPostBase(baseDir: str,nickname: str, domain: str, port: int, \
eventName=content
eventDateStr=eventDate
if eventTime:
eventDateStr=eventDate+'T'+eventTime
eventDateStr=eventDate+'T'+eventTime+':00Z'
else:
eventDateStr=eventDate+'T00:00:00Z'
tags.append({