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

View File

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