From 0b36ded8de196368dc1cbfa27828a75c88f2acf2 Mon Sep 17 00:00:00 2001 From: Shad L. Lords Date: Mon, 26 Oct 2009 18:09:55 -0600 Subject: [PATCH] Force time to be based on UTC --- textw/timezone_text.py | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/textw/timezone_text.py b/textw/timezone_text.py index f6afd6b..f145aff 100644 --- a/textw/timezone_text.py +++ b/textw/timezone_text.py @@ -48,8 +48,7 @@ class TimezoneWindow: args = [ "/usr/sbin/hwclock" ] args.append("--hctosys") - if self.c.selected(): - args.append("--utc") + args.append("--utc") iutil.execWithRedirect(args[0], args) self.g.setTimer(500) @@ -91,14 +90,12 @@ class TimezoneWindow: self.l.setCurrent(default) # self.l.setCallback(self.updateClock) - 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.l, 0, 3, padding = (0, 0, 0, 1)) self.g.add(bb, 0, 4, growx = 1) @@ -126,7 +123,7 @@ class TimezoneWindow: break screen.popWindow() - timezone.setTimezoneInfo(self.l.current(), asUtc = self.c.selected()) + timezone.setTimezoneInfo(self.l.current(), asUtc = 1) return INSTALL_OK -- 1.5.5.6