make use of a try except block instead of removing the tzset
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Thu, 17 Nov 2005 16:15:01 +0000 (16:15 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Thu, 17 Nov 2005 16:15:01 +0000 (16:15 +0000)
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]
                
        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 = []
                
        def getTimezoneList(self):
                list = []