make use of a try except block instead of removing the tzset
[enigma2.git] / lib / python / Components / Timezones.py
index 2eec17a67e9ed0202b2dedc904b16d76a37e9f9e..6f71187b9d1dab74d13eccffbc795a1cfd3bafc9 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 = []