summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristian Franke <nobody@nowhere.ws>2016-01-19 21:17:16 +0100
committerChristian Franke <nobody@nowhere.ws>2016-01-19 21:17:16 +0100
commitb5fe406e32a2404dce28a2f03cbe34b488ad4fc2 (patch)
tree4d21d5f98fa0f74dcea325ea2398728c363e8d8d /scripts
parentc613241693a4b5bb9585d72e621ff8afaddc8e58 (diff)
Fix multiday events
Diffstat (limited to 'scripts')
-rw-r--r--scripts/get_calendar.py2
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)