add lcd
[enigma2.git] / lib / python / Components / Clock.py
index 36e06942251a9bcfb017cd43223eed37c32504e5..d47ac78b8c2f46cb506cbbff30c087dbc2b3a513 100644 (file)
@@ -2,8 +2,10 @@ from HTMLComponent import *
 from GUIComponent import *
 from VariableText import *
 
-from enigma import eTimer
-from enigma import eLabel
+#from enigma import eTimer
+#from enigma import eLabel
+
+from enigma import *
 
 import time
 # now some "real" components:
@@ -21,10 +23,13 @@ class Clock(HTMLComponent, GUIComponent, VariableText):
 # "funktionalitaet"    
        def doClock(self):
                t = time.localtime()
-               self.setText("%2d:%02d:%02d" % (t[3], t[4], t[5]))
+               #HACK use timezone settings
+               timestr = "%2d:%02d:%02d" % (t[3] + 2, t[4], t[5])
+               self.setText(timestr)
+               setLCDClock(timestr)
 
 # realisierung als GUI
-       def createWidget(self, parent, skindata):
+       def createWidget(self, parent):
                return eLabel(parent)
 
        def removeWidget(self, w):