diff --git a/src/tools/systemd/time.rs b/src/tools/systemd/time.rs index b16e3a37..5a71c4ed 100644 --- a/src/tools/systemd/time.rs +++ b/src/tools/systemd/time.rs @@ -157,10 +157,12 @@ pub fn compute_next_event( count += 1; } - if !all_days { // match day first + if !all_days && t.changes.contains(TMChanges::WDAY) { // match day first let day_num = t.day_num(); let day = WeekDays::from_bits(1< bool {