From 7b73dc573aafddebcc3b9dff9a2e20665c22e654 Mon Sep 17 00:00:00 2001 From: Shad L. Lords Date: Mon, 19 Oct 2009 08:31:38 -0600 Subject: [PATCH] Force time to be based on UTC --- textw/timezone_text.py | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/textw/timezone_text.py b/textw/timezone_text.py index f30e68f..b29428f 100644 --- a/textw/timezone_text.py +++ b/textw/timezone_text.py @@ -37,8 +37,7 @@ class TimezoneWindow: def updateSysClock(self): args = ["--hctosys"] - if self.c.selected(): - args.append("--utc") + args.append("--utc") iutil.execWithRedirect("hwclock", args, searchPath=1) self.g.setTimer(500) @@ -85,14 +84,14 @@ class TimezoneWindow: self.l.setCurrent(default) # self.l.setCallback(self.updateClock) - self.c = Checkbox(_("System clock uses UTC"), isOn = asUtc) +# self.c = Checkbox(_("System clock uses UTC"), isOn = asUtc) # self.c.setCallback(self.updateSysClock) self.g = GridFormHelp(screen, _("Time Zone Selection"), "timezone", 1, 5) self.g.add(t, 0, 0) # self.g.add(self.label, 0, 1, padding = (0, 1, 0, 0), anchorLeft = 1) - self.g.add(self.c, 0, 2, padding = (0, 1, 0, 1), anchorLeft = 1) +# self.g.add(self.c, 0, 2, padding = (0, 1, 0, 1), anchorLeft = 1) self.g.add(self.l, 0, 3, padding = (0, 0, 0, 1)) self.g.add(bb, 0, 4, growx = 1) @@ -120,7 +119,7 @@ class TimezoneWindow: break screen.popWindow() - anaconda.id.timezone.setTimezoneInfo(self.l.current(), asUtc = self.c.selected()) + anaconda.id.timezone.setTimezoneInfo(self.l.current(), asUtc = 1) return INSTALL_OK -- 1.5.5.6