make use of a try except block instead of removing the tzset
[enigma2.git] / lib / python / Components / Timezones.py
index 2eec17a..6f71187 100644 (file)
@@ -27,8 +27,10 @@ class Timezones:
                
        def activateTimezone(self, index):
                os.environ['TZ'] = self.timezones[index][1]
-               # FIXME we need a tzset
-               #time.tzset()
+               try:
+                       time.tzset()
+               except:
+                       print "Timezone NOT set because your python has problems with time.tzset()"
                
        def getTimezoneList(self):
                list = []