git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(ralfk) add getCurrentEvent to Filelist
[enigma2.git]
/
lib
/
python
/
Components
/
Timezones.py
diff --git
a/lib/python/Components/Timezones.py
b/lib/python/Components/Timezones.py
index 15837450e1074a70966a57a627740c74b0ed807e..6e43aa21120c9e6d3d3367d6ffbf148a050e8999 100644
(file)
--- a/
lib/python/Components/Timezones.py
+++ b/
lib/python/Components/Timezones.py
@@
-4,8
+4,6
@@
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):
@@
-42,7
+40,8
@@
class Timezones:
try:
time.tzset()
except:
try:
time.tzset()
except:
- etimezone()
+ from enigma import e_tzset
+ e_tzset()
def getTimezoneList(self):
list = []
def getTimezoneList(self):
list = []
@@
-52,6
+51,10
@@
class Timezones:
def getDefaultTimezone(self):
# TODO return something more useful - depending on country-settings?
def getDefaultTimezone(self):
# TODO return something more useful - depending on country-settings?
- return 27
+ t = "(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Vienna"
+ for (a,b) in self.timezones:
+ if a == t:
+ return a
+ return self.timezones[0][0]
timezones = Timezones()
timezones = Timezones()