[pbs-devel] [PATCH proxmox-backup 2/2] systemd/time: fix weekday wrapping on month

Dominik Csapak d.csapak at proxmox.com
Fri Jul 31 14:15:13 CEST 2020


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

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 src/tools/systemd/tm_editor.rs | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/tools/systemd/tm_editor.rs b/src/tools/systemd/tm_editor.rs
index 5ae3ab45..3b81d1cb 100644
--- a/src/tools/systemd/tm_editor.rs
+++ b/src/tools/systemd/tm_editor.rs
@@ -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);
         }
-- 
2.20.1






More information about the pbs-devel mailing list