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:
parent
6c96ec418d
commit
eeb19aeb2d
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue