summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2007-02-21 19:57:15 +0000
committerChris Lumens <clumens@redhat.com>2007-02-21 19:57:15 +0000
commit7acd69b9af44b3473627f19e036cd7d688b0aa7f (patch)
treee74f447dcb56ef75b66311db930e85fcda9c423e
parentee4d0f511bc471dc0a9eca9fdea1e776097de0bb (diff)
downloadanaconda-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--ChangeLog5
-rwxr-xr-xanaconda1
-rw-r--r--instdata.py1
3 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 9c7009a27..21f50ff33 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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).
diff --git a/anaconda b/anaconda
index 0e2693fb2..8e1284831 100755
--- a/anaconda
+++ b/anaconda
@@ -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"