diff options
author | Chris Lumens <clumens@redhat.com> | 2007-02-21 19:57:15 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2007-02-21 19:57:15 +0000 |
commit | 7acd69b9af44b3473627f19e036cd7d688b0aa7f (patch) | |
tree | e74f447dcb56ef75b66311db930e85fcda9c423e | |
parent | ee4d0f511bc471dc0a9eca9fdea1e776097de0bb (diff) | |
download | anaconda-7acd69b9af44b3473627f19e036cd7d688b0aa7f.tar.gz anaconda-7acd69b9af44b3473627f19e036cd7d688b0aa7f.tar.xz anaconda-7acd69b9af44b3473627f19e036cd7d688b0aa7f.zip |
Set the default timezone based on the current language, whether we can display
it or not (#227625).
-rw-r--r-- | ChangeLog | 5 | ||||
-rwxr-xr-x | anaconda | 1 | ||||
-rw-r--r-- | instdata.py | 1 |
3 files changed, 7 insertions, 0 deletions
@@ -1,6 +1,11 @@ 2007-02-20 Chris Lumens <clumens@redhat.com> * anaconda: Add dpi flag when starting X (#224665). + Set the default timezone based on the current language even if we + can't display it yet (#227625). + + * instdata.py (InstallData.reset): Set the default timezone based on + current language. * scripts/upd-instroot: Several important terminfo files have moved into /lib (#228596, #229236). @@ -908,6 +908,7 @@ if __name__ == "__main__": anaconda.dispatch.skipStep("language", permanent = 1) instClass.setLanguage(anaconda.id, opts.lang) instClass.setLanguageDefault(anaconda.id, opts.lang) + anaconda.id.timezone.setTimezoneInfo(anaconda.id.instLanguage.getDefaultTimeZone()) if opts.keymap: anaconda.dispatch.skipStep("keyboard", permanent = 1) diff --git a/instdata.py b/instdata.py index d63e18033..91ca81ad5 100644 --- a/instdata.py +++ b/instdata.py @@ -58,6 +58,7 @@ class InstallData: self.firewall = firewall.Firewall() self.security = security.Security() self.timezone = timezone.Timezone() + self.timezone.setTimezoneInfo(self.instLanguage.getDefaultTimeZone()) self.users = None self.rootPassword = { "isCrypted": False, "password": "" } self.auth = "--enableshadow --enablemd5" |