From 1b2acec24d480ecf728be7918c6a0eebc859d137 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Sun, 16 Apr 2006 11:23:48 +0000 Subject: [PATCH] do not activate repeated timers first time when the start time is before now time --- timer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/timer.py b/timer.py index a912f1c..424dde0 100644 --- a/timer.py +++ b/timer.py @@ -50,7 +50,7 @@ class TimerEntry: print time.strftime("%c", time.localtime(self.begin)) print time.strftime("%c", time.localtime(self.end)) print str(time.localtime(self.begin).tm_wday) - while ((day[time.localtime(self.begin).tm_wday] != 0) or ((day[time.localtime(self.begin).tm_wday] == 0) and self.end < now)): + while ((day[time.localtime(self.begin).tm_wday] != 0) or ((day[time.localtime(self.begin).tm_wday] == 0) and self.begin < now)): print time.strftime("%c", time.localtime(self.begin)) print time.strftime("%c", time.localtime(self.end)) self.begin += 86400 -- 2.7.4