aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstuebinm2022-01-23 23:41:33 +0100
committerstuebinm2022-01-23 23:41:33 +0100
commit7f06bb4c52bdc9f5dec1b7070f14d2001636ca8f (patch)
tree64261dc4e50d98ecddcc05176938de08655691ce
parent5200c5aa1bdd9b6c5ef6f1feecf6c5b3ecd0fdd2 (diff)
(hopefully) fix recurring events
-rw-r--r--src/periodic.rs5
1 files 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 => {}