From: Felix Domke Date: Mon, 9 Oct 2006 21:15:38 +0000 (+0000) Subject: use new ConfigClock X-Git-Tag: 2.6.0~2977 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/263fb05a22a1caa119810445d0b5d3faa8236579 use new ConfigClock --- diff --git a/lib/python/Screens/TimeDateInput.py b/lib/python/Screens/TimeDateInput.py index d8e1f8a1..bc1726e0 100644 --- a/lib/python/Screens/TimeDateInput.py +++ b/lib/python/Screens/TimeDateInput.py @@ -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): diff --git a/lib/python/Screens/TimerEntry.py b/lib/python/Screens/TimerEntry.py index c548e153..b146ecf3 100644 --- a/lib/python/Screens/TimerEntry.py +++ b/lib/python/Screens/TimerEntry.py @@ -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"))])