From 7b370b651b840fdebc47f5892b83fc7bfacfc051 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 11 Oct 2019 21:53:31 +0100 Subject: [PATCH] Single datetime --- webinterface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webinterface.py b/webinterface.py index 2612a446d..9b571673e 100644 --- a/webinterface.py +++ b/webinterface.py @@ -2847,7 +2847,7 @@ def htmlCalendarDay(translate: {}, \ for ev in eventPost: if ev['type']=='Event': if ev.get('startTime'): - eventDate=datetime.datetime.strptime(ev['startTime'],"%Y-%m-%dT%H:%M:%S%z") + eventDate=datetime.strptime(ev['startTime'],"%Y-%m-%dT%H:%M:%S%z") eventTime=eventDate.strftime("%H:%M") if ev.get('name'): eventDescription=ev['name']