diff --git a/calendar_utils/parser.py b/calendar_utils/parser.py index 0a0454bbcdbe23242e096771573e5077ba609fb6..d34623e9081105707f556de69711cb497849fbdc 100644 --- a/calendar_utils/parser.py +++ b/calendar_utils/parser.py @@ -18,9 +18,9 @@ def parse_ical(source): def split_events(events): """Splits events and returns list of past events and future events.""" - now = arrow.utcnow() - past = [ev for ev in events if ev["end"] < now] - future = [ev for ev in events if ev["end"] > now] + singularity = arrow.utcnow().shift(hours=-2) + past = [ev for ev in events if ev["end"] < singularity] + future = [ev for ev in events if ev["end"] > singularity] return past, future