From d7510dd9cbf24d1cbcf53d8b4b7748ecce76be3c Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Fri, 6 May 2022 14:19:49 +0100 Subject: [PATCH] Add the end date --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 9205976..56104ce 100644 --- a/main.py +++ b/main.py @@ -42,12 +42,12 @@ def process() -> Response: entry = Event() entry.add('description', component['description']) entry.add('dtstamp', component['dtstamp']) - # entry.add('dtstart', component['dtstart']) entry.add( 'dtstart', datetime.combine(component.decoded('dtstart'), time(0)) + timedelta(days=int(days), hours=int(hours), minutes=int(mins)), ) + entry.add('dtend', component['dtend']) entry.add('summary', component['summary']) entry.add('uid', component['uid'])