Single datetime

main2
Bob Mottram 2019-10-11 21:53:31 +01:00
parent 29b94eef31
commit 7b370b651b
1 changed files with 1 additions and 1 deletions

View File

@ -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']