From: Felix Domke Date: Mon, 26 Mar 2007 16:04:28 +0000 (+0000) Subject: default to UTC if GMT+1 is not found X-Git-Tag: 2.6.0~2349 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/d0f0d67a824a4d7108a0081a5f4a839dacf40036?ds=sidebyside default to UTC if GMT+1 is not found --- 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()