From 3ca9a85bf4e9edd9eefe26671876eccd5ddf64a2 Mon Sep 17 00:00:00 2001 From: Ace Date: Sat, 18 Jan 2020 16:09:26 +0100 Subject: [PATCH] Possible bugfix for 'begin must be before end' --- modules/inkycal_icalendar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/inkycal_icalendar.py b/modules/inkycal_icalendar.py index a0bfa96..c61b248 100644 --- a/modules/inkycal_icalendar.py +++ b/modules/inkycal_icalendar.py @@ -44,8 +44,8 @@ def fetch_events(): if events.all_day and events.duration.days > 1: events.end = events.end.replace(days=-2) else: - events.begin = events.begin.to(timezone) events.end = events.end.to(timezone) + events.begin = events.begin.to(timezone) try: rule = re.search('RRULE:(.+?)\n', event_str).group(0)[:-2] if re.search('UNTIL=(.+?);', rule) and not re.search('UNTIL=(.+?)Z;', rule): @@ -76,8 +76,8 @@ def fetch_events(): events.end = events.end.replace(days=-2) if not events.all_day: - events.begin = events.begin.to(timezone) events.end = events.end.to(timezone) + events.begin = events.begin.to(timezone) """ The list upcoming_events should not be modified. If you need the data from this one, copy the list or the contents to another one."""