From: Andreas Monzner Date: Sun, 16 Apr 2006 11:23:48 +0000 (+0000) Subject: do not activate repeated timers first time when the start time is before now time X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=commitdiff_plain;h=1b2acec24d480ecf728be7918c6a0eebc859d137 do not activate repeated timers first time when the start time is before now time --- 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