From 350ca9a9900a43be5873efdaf8e31f58dc4c3f9c Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Thu, 17 Nov 2005 16:12:16 +0000 Subject: timezone selection works now. tzset doesn't exist, so we cannot activate the timezone atm. --- lib/python/Components/SetupDevices.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/python/Components/SetupDevices.py') diff --git a/lib/python/Components/SetupDevices.py b/lib/python/Components/SetupDevices.py index 003bba54..612bb8c8 100644 --- a/lib/python/Components/SetupDevices.py +++ b/lib/python/Components/SetupDevices.py @@ -8,8 +8,13 @@ from config import configText from Components.Timezones import timezones def InitSetupDevices(): + + def timezoneNotifier(configElement): + timezones.activateTimezone(configElement.value) + config.timezone = ConfigSubsection(); - config.timezone.val = configElement("config.timezone.val", configSelection, 1, ("GMT", "GMT+1", "GMT+2", "GMT+3", "GMT+4", "GMT+5", "GMT+6", "GMT+7", "GMT+8", "GMT+9") ); + config.timezone.val = configElement("config.timezone.val", configSelection, timezones.getDefaultTimezone(), timezones.getTimezoneList()); + config.timezone.val.addNotifier(timezoneNotifier) config.rc = ConfigSubsection(); config.rc.map = configElement("config.rc.map", configSelection, 0, ("Default", "Classic") ); -- cgit v1.2.3