diff options
author | Christian Franke <nobody@nowhere.ws> | 2016-01-19 21:17:16 +0100 |
---|---|---|
committer | Christian Franke <nobody@nowhere.ws> | 2016-01-19 21:17:16 +0100 |
commit | b5fe406e32a2404dce28a2f03cbe34b488ad4fc2 (patch) | |
tree | 4d21d5f98fa0f74dcea325ea2398728c363e8d8d /scripts | |
parent | c613241693a4b5bb9585d72e621ff8afaddc8e58 (diff) |
Fix multiday events
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/get_calendar.py | 2 |
1 files changed, 2 insertions, 0 deletions
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) |