aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 => {}