aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Components')
-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()