Offset end time too

This commit is contained in:
Scott Wallace 2022-07-07 13:44:24 +01:00
parent d7510dd9cb
commit cd38fb6b37
Signed by: scott
GPG key ID: AA742FDC5AFE2A72

View file

@ -47,7 +47,11 @@ def process() -> Response:
datetime.combine(component.decoded('dtstart'), time(0)) datetime.combine(component.decoded('dtstart'), time(0))
+ timedelta(days=int(days), hours=int(hours), minutes=int(mins)), + 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('summary', component['summary'])
entry.add('uid', component['uid']) entry.add('uid', component['uid'])