Add the end date

This commit is contained in:
Scott Wallace 2022-05-06 14:19:49 +01:00
parent 9acde4bd9d
commit d7510dd9cb
Signed by: scott
GPG key ID: AA742FDC5AFE2A72

View file

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