git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
default to UTC if GMT+1 is not found
[enigma2.git]
/
lib
/
python
/
Components
/
Timezones.py
diff --git
a/lib/python/Components/Timezones.py
b/lib/python/Components/Timezones.py
index ccc982797e8c466b521362ce9c2145c98d4a2ba2..6e43aa21120c9e6d3d3367d6ffbf148a050e8999 100644
(file)
--- a/
lib/python/Components/Timezones.py
+++ b/
lib/python/Components/Timezones.py
@@
-51,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 "(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Vienna"
+ 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()