aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2007-03-26 16:04:28 +0000
committerFelix Domke <tmbinc@elitedvb.net>2007-03-26 16:04:28 +0000
commitd0f0d67a824a4d7108a0081a5f4a839dacf40036 (patch)
treed7ff8aed65cda478e7adeb8bd006ba350674301c /lib/python
parent829dd14b8ee18fa3318daeef5c33892a1a3ab10c (diff)
downloadenigma2-d0f0d67a824a4d7108a0081a5f4a839dacf40036.tar.gz
enigma2-d0f0d67a824a4d7108a0081a5f4a839dacf40036.zip
default to UTC if GMT+1 is not found
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Components/Timezones.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/python/Components/Timezones.py b/lib/python/Components/Timezones.py
index ccc98279..6e43aa21 100644
--- 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?
- 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()