From b5fe406e32a2404dce28a2f03cbe34b488ad4fc2 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Tue, 19 Jan 2016 21:17:16 +0100 Subject: Fix multiday events --- scripts/get_calendar.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/get_calendar.py b/scripts/get_calendar.py index 8a59c93..b0bc186 100644 --- a/scripts/get_calendar.py +++ b/scripts/get_calendar.py @@ -47,6 +47,8 @@ def get_events(calendar, after, before): start = datetime.combine(start, time()) if not isinstance(end, datetime): end = datetime.combine(end, time()) + if end.hour == 0 and end.minute == 0 and end.second == 0: + end -= timedelta(seconds=1) if 'rrule' in event: rrule = rrulestr(event['rrule'].to_ical(), dtstart=start) -- cgit v1.2.1