git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make use of a try except block instead of removing the tzset
[enigma2.git]
/
lib
/
python
/
Components
/
Timezones.py
diff --git
a/lib/python/Components/Timezones.py
b/lib/python/Components/Timezones.py
index 2eec17a67e9ed0202b2dedc904b16d76a37e9f9e..6f71187b9d1dab74d13eccffbc795a1cfd3bafc9 100644
(file)
--- 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]
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 = []