git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use c++-fallback for lack of tzset-python-function
[enigma2.git]
/
lib
/
python
/
Components
/
Timezones.py
diff --git
a/lib/python/Components/Timezones.py
b/lib/python/Components/Timezones.py
index 2eec17a67e9ed0202b2dedc904b16d76a37e9f9e..0b6eb79bfe880b896905edf132757ae300ad3f74 100644
(file)
--- 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
import os
import time
+from enigma import *
+
class Timezones:
class parseTimezones(ContentHandler):
def __init__(self, timezones):
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]
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 = []
def getTimezoneList(self):
list = []