diff options
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) |