systemd/time: fix weekday wrapping on month

the weekday does not change depending on the month, so remove that wrapping

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2020-07-31 14:15:13 +02:00 committed by Dietmar Maurer
parent 6c96ec418d
commit eeb19aeb2d
1 changed files with 0 additions and 1 deletions

View File

@ -123,7 +123,6 @@ impl TmEditor {
if self.t.tm_mday < days_in_mon { break; } if self.t.tm_mday < days_in_mon { break; }
// Wrap one month // Wrap one month
self.t.tm_mday -= days_in_mon; self.t.tm_mday -= days_in_mon;
self.t.tm_wday += 7 - (days_in_mon % 7);
self.t.tm_mon += 1; self.t.tm_mon += 1;
self.changes.insert(TMChanges::MDAY|TMChanges::WDAY|TMChanges::MON); self.changes.insert(TMChanges::MDAY|TMChanges::WDAY|TMChanges::MON);
} }