diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-11-17 16:12:16 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-11-17 16:12:16 +0000 |
| commit | 350ca9a9900a43be5873efdaf8e31f58dc4c3f9c (patch) | |
| tree | 880d0fce817b21dc89f93e32d9e0e758176042b1 /lib/python/Components/SetupDevices.py | |
| parent | 9925392e576717cc0df070ace822a6f392808bb7 (diff) | |
| download | enigma2-350ca9a9900a43be5873efdaf8e31f58dc4c3f9c.tar.gz enigma2-350ca9a9900a43be5873efdaf8e31f58dc4c3f9c.zip | |
timezone selection works now. tzset doesn't exist, so we cannot activate the timezone atm.
Diffstat (limited to 'lib/python/Components/SetupDevices.py')
| -rw-r--r-- | lib/python/Components/SetupDevices.py | 7 |
1 files changed, 6 insertions, 1 deletions
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") ); |
