diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2007-03-26 16:04:28 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2007-03-26 16:04:28 +0000 |
| commit | d0f0d67a824a4d7108a0081a5f4a839dacf40036 (patch) | |
| tree | d7ff8aed65cda478e7adeb8bd006ba350674301c /lib/python/Components | |
| parent | 829dd14b8ee18fa3318daeef5c33892a1a3ab10c (diff) | |
| download | enigma2-d0f0d67a824a4d7108a0081a5f4a839dacf40036.tar.gz enigma2-d0f0d67a824a4d7108a0081a5f4a839dacf40036.zip | |
default to UTC if GMT+1 is not found
Diffstat (limited to 'lib/python/Components')
| -rw-r--r-- | lib/python/Components/Timezones.py | 6 |
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() |
