From 65b8a744d10f0c5e0764c2a745ab3b04f4d34b56 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 10 Oct 2019 14:24:29 +0100 Subject: [PATCH] Check for ending of time --- posts.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/posts.py b/posts.py index 8cb4612a..2405499f 100644 --- a/posts.py +++ b/posts.py @@ -535,7 +535,10 @@ def createPostBase(baseDir: str,nickname: str, domain: str, port: int, \ eventName=content eventDateStr=eventDate if eventTime: - eventDateStr=eventDate+'T'+eventTime+':00Z' + if eventTime.endswith('Z'): + eventDateStr=eventDate+'T'+eventTime + else: + eventDateStr=eventDate+'T'+eventTime+':00Z' else: eventDateStr=eventDate+'T00:00:00Z' tags.append({