use new ConfigClock
authorFelix Domke <tmbinc@elitedvb.net>
Mon, 9 Oct 2006 21:15:38 +0000 (21:15 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Mon, 9 Oct 2006 21:15:38 +0000 (21:15 +0000)
lib/python/Screens/TimeDateInput.py
lib/python/Screens/TimerEntry.py

index d8e1f8a..bc1726e 100644 (file)
@@ -33,7 +33,8 @@ class TimeDateInput(Screen, ConfigListScreen):
        def createConfig(self):
                nowtime = time.time()
                self.timeinput_date = ConfigDateTime(default = nowtime, formatstring = (_("%d.%B %Y"), 86400))
-#              self.timeinput_time = ConfigSequence(default = [int(time.strftime("%H", time.localtime(nowtime))), int(time.strftime("%M", time.localtime(nowtime)))]
+               self.timeinput_time = ConfigClock(default = nowtime)
+
                assert False, "fixme"
 
        def createSetup(self, configlist):
index c548e15..b146ecf 100644 (file)
@@ -88,10 +88,10 @@ class TimerEntry(Screen, ConfigListScreen):
                        self.timerentry_repeated = ConfigSelection(default = repeated, choices = [("daily", _("daily")), ("weekly", _("weekly")), ("weekdays", _("Mon-Fri")), ("user", _("user defined"))])
 
                        self.timerentry_startdate = ConfigDateTime(default = self.timer.begin, formatstring = _("%d.%B %Y"), increment = 86400)
-                       self.timerentry_starttime = ConfigClock(default = [int(time.strftime("%H", time.localtime(self.timer.begin))), int(time.strftime("%M", time.localtime(self.timer.begin)))])
+                       self.timerentry_starttime = ConfigClock(default = self.timer.begin)
 
                        self.timerentry_enddate = ConfigDateTime(default = self.timer.end, formatstring =  _("%d.%B %Y"), increment = 86400)
-                       self.timerentry_endtime = ConfigClock(default = [int(time.strftime("%H", time.localtime(self.timer.end))), int(time.strftime("%M", time.localtime(self.timer.end)))])
+                       self.timerentry_endtime = ConfigClock(default = self.timer.end)
 
                        self.timerentry_weekday = ConfigSelection(default = weekday_table[weekday], choices = [("mon",_("Monday")), ("tue", _("Tuesday")), ("wed",_("Wednesday")), ("thu", _("Thursday")), ("fri", _("Friday")), ("sat", _("Saturday")), ("sun", _("Sunday"))])