git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
350ca9a
)
make use of a try except block instead of removing the tzset
author
Stefan Pluecken
<
[email protected]
>
Thu, 17 Nov 2005 16:15:01 +0000
(16:15 +0000)
committer
Stefan Pluecken
<
[email protected]
>
Thu, 17 Nov 2005 16:15:01 +0000
(16:15 +0000)
lib/python/Components/Timezones.py
patch
|
blob
|
history
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]
- # 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 = []