diff options
author | stuebinm | 2022-01-23 23:41:33 +0100 |
---|---|---|
committer | stuebinm | 2022-01-23 23:41:33 +0100 |
commit | 7f06bb4c52bdc9f5dec1b7070f14d2001636ca8f (patch) | |
tree | 64261dc4e50d98ecddcc05176938de08655691ce /src | |
parent | 5200c5aa1bdd9b6c5ef6f1feecf6c5b3ecd0fdd2 (diff) |
(hopefully) fix recurring events
Diffstat (limited to 'src')
-rw-r--r-- | src/periodic.rs | 5 |
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 => {} |