From 7f06bb4c52bdc9f5dec1b7070f14d2001636ca8f Mon Sep 17 00:00:00 2001 From: stuebinm Date: Sun, 23 Jan 2022 23:41:33 +0100 Subject: (hopefully) fix recurring events --- src/periodic.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/periodic.rs b/src/periodic.rs index 3eada26..7873052 100644 --- a/src/periodic.rs +++ b/src/periodic.rs @@ -149,8 +149,9 @@ impl<'a> Iter<'a> { match byday.get(&next.weekday()) { Some(occurrences) => if p.bysetpos == week || p.bysetpos == neg_week - || occurrences.contains(&0) - || occurrences.contains(&week) || occurrences.contains(&neg_week) { + // || occurrences.contains(&0) + // NOTE: not sure why this is here, but it seems to produce erroneous entries + || occurrences.contains(&week) || occurrences.contains(&neg_week) { break; } None => {} -- cgit v1.2.3