do not activate repeated timers first time when the start time is before now time
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sun, 16 Apr 2006 11:23:48 +0000 (11:23 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sun, 16 Apr 2006 11:23:48 +0000 (11:23 +0000)
timer.py

index a912f1c629c0ae4b8f394ad2b61359955810da99..424dde0934d668e557f00313f9ee81feb708fda8 100644 (file)
--- 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