From: Andreas Monzner Date: Wed, 13 Jun 2007 20:43:15 +0000 (+0000) Subject: just increase timer event endtime in processrepeated when begintime is equal X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=commitdiff_plain;h=a7df600c514e420df8a7774c6ea8aafb91569a23 just increase timer event endtime in processrepeated when begintime is equal to endtime --- diff --git a/timer.py b/timer.py index 0ca4888..3c66c92 100644 --- a/timer.py +++ b/timer.py @@ -72,7 +72,9 @@ class TimerEntry: #we now have a struct_time representation of begin and end in localtime, but we have to calculate back to (gmt) seconds since epoch self.begin = int(mktime(localbegin)) - self.end = int(mktime(localend)) + 1 + self.end = int(mktime(localend)) + if self.begin == self.end: + self.end += 1 print "ProcessRepeated result" print strftime("%c", localtime(self.begin))