change timer to UTC, to prevent problems with Sommer/Wintertime
authorRico Schulte <ricoschulte@users.schwerkraft.elitedvb.net>
Sun, 24 Jun 2007 20:53:24 +0000 (20:53 +0000)
committerRico Schulte <ricoschulte@users.schwerkraft.elitedvb.net>
Sun, 24 Jun 2007 20:53:24 +0000 (20:53 +0000)
Thanks to kenatonline for finding this bug and for makeing huge tests

webinterface/src/WebComponents/Sources/Timer.py

index db07541..4d15120 100644 (file)
@@ -176,8 +176,8 @@ class Timer( Source):
             if len(takeApart) > 1:
                 param['sRef'] = takeApart[1]
 
-        param['begin'] = int( time.strftime("%s",  time.localtime(time.mktime( (syear, smonth, sday, shour, smin, 0, 0, 0, 0) ) ) ) )
-        param['end']   = int( time.strftime("%s",  time.localtime(time.mktime( (eyear, emonth, eday, ehour, emin, 0, 0, 0, 0) ) ) ) )
+        param['begin'] = int( time.strftime("%s",  time.localtime(time.mktime( (syear, smonth, sday, shour, smin, 0, 0, 0, -1) ) ) ) )
+        param['end']   = int( time.strftime("%s",  time.localtime(time.mktime( (eyear, emonth, eday, ehour, emin, 0, 0, 0, -1) ) ) ) )
         
         if param['command'] == "add":
             return self.addTimer(param)