aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2005-11-17 16:15:01 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2005-11-17 16:15:01 +0000
commita630959f3049fd7dda7d687d0d5dc827ba4cfe2b (patch)
tree5ab8cf302c77a9928f5cac6ba1a2852ac65ae8d3 /lib/python/Components
parent350ca9a9900a43be5873efdaf8e31f58dc4c3f9c (diff)
downloadenigma2-a630959f3049fd7dda7d687d0d5dc827ba4cfe2b.tar.gz
enigma2-a630959f3049fd7dda7d687d0d5dc827ba4cfe2b.zip
make use of a try except block instead of removing the tzset
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/Timezones.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/python/Components/Timezones.py b/lib/python/Components/Timezones.py
index 2eec17a6..6f71187b 100644
--- a/lib/python/Components/Timezones.py
+++ b/lib/python/Components/Timezones.py
@@ -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 = []