aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-10-09 21:15:38 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-10-09 21:15:38 +0000
commit263fb05a22a1caa119810445d0b5d3faa8236579 (patch)
treebe8c2015db0c22a478797ca42c4713b6f458de15 /lib/python
parent81ba8338641aa41e52e498b43aeefa66714819fe (diff)
downloadenigma2-263fb05a22a1caa119810445d0b5d3faa8236579.tar.gz
enigma2-263fb05a22a1caa119810445d0b5d3faa8236579.zip
use new ConfigClock
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/TimeDateInput.py3
-rw-r--r--lib/python/Screens/TimerEntry.py4
2 files changed, 4 insertions, 3 deletions
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"))])