From cd38fb6b371bf3ed790a6819bd802a993c30ab7e Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Thu, 7 Jul 2022 13:44:24 +0100 Subject: [PATCH] Offset end time too --- main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 56104ce..24db799 100644 --- a/main.py +++ b/main.py @@ -47,7 +47,11 @@ def process() -> Response: datetime.combine(component.decoded('dtstart'), time(0)) + timedelta(days=int(days), hours=int(hours), minutes=int(mins)), ) - entry.add('dtend', component['dtend']) + entry.add( + 'dtend', + datetime.combine(component.decoded('dtend'), time(0)) + + timedelta(days=int(days), hours=int(hours), minutes=int(mins)), + ) entry.add('summary', component['summary']) entry.add('uid', component['uid'])