From 4203cf87fcaaa63e22a5e1bf2cfba2e7ba000df1 Mon Sep 17 00:00:00 2001 From: Patrik Dufresne Date: Wed, 4 Jul 2018 11:54:09 -0400 Subject: [PATCH] TASK-1027 Fix bug in deamon plugin scheduler When the scheduler run around the month. It doesn't know how to compute the next day. --- rdiffweb/rdw_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdiffweb/rdw_plugin.py b/rdiffweb/rdw_plugin.py index ab49ddf1..11ee289d 100644 --- a/rdiffweb/rdw_plugin.py +++ b/rdiffweb/rdw_plugin.py @@ -489,7 +489,7 @@ class JobPlugin(IDeamonPlugin): now = datetime.datetime.now() exec_time = now.replace(hour=exec_time.hour, minute=exec_time.minute, second=0, microsecond=0) if exec_time < now: - exec_time = exec_time.replace(day=exec_time.day + 1) + exec_time = exec_time + datetime.timedelta(days=1) return exec_time -- GitLab