X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/350ca9a9900a43be5873efdaf8e31f58dc4c3f9c..d0ca21133e420f63c90d44e6b8bd23273e2ffd58:/lib/python/Components/Timezones.py diff --git a/lib/python/Components/Timezones.py b/lib/python/Components/Timezones.py index 2eec17a6..0b6eb79b 100644 --- a/lib/python/Components/Timezones.py +++ b/lib/python/Components/Timezones.py @@ -4,6 +4,8 @@ from xml.sax.handler import ContentHandler import os import time +from enigma import * + class Timezones: class parseTimezones(ContentHandler): def __init__(self, timezones): @@ -27,8 +29,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: + etimezone() def getTimezoneList(self): list = []