43 |
|
|
44 |
def updateSysClock(self): |
def updateSysClock(self): |
45 |
args = ["--hctosys"] |
args = ["--hctosys"] |
46 |
if self.c.selected(): |
args.append("--utc") |
|
args.append("--utc") |
|
47 |
|
|
48 |
iutil.execWithRedirect("hwclock", args) |
iutil.execWithRedirect("hwclock", args) |
49 |
self.g.setTimer(500) |
self.g.setTimer(500) |
88 |
self.l.setCurrent(default.replace("_", " ")) |
self.l.setCurrent(default.replace("_", " ")) |
89 |
# self.l.setCallback(self.updateClock) |
# self.l.setCallback(self.updateClock) |
90 |
|
|
|
self.c = Checkbox(_("System clock uses UTC"), isOn = asUtc) |
|
|
# self.c.setCallback(self.updateSysClock) |
|
|
|
|
91 |
self.g = GridFormHelp(screen, _("Time Zone Selection"), "timezone", |
self.g = GridFormHelp(screen, _("Time Zone Selection"), "timezone", |
92 |
1, 5) |
1, 5) |
93 |
self.g.add(t, 0, 0) |
self.g.add(t, 0, 0) |
94 |
# self.g.add(self.label, 0, 1, padding = (0, 1, 0, 0), anchorLeft = 1) |
# 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) |
|
95 |
self.g.add(self.l, 0, 3, padding = (0, 0, 0, 1)) |
self.g.add(self.l, 0, 3, padding = (0, 0, 0, 1)) |
96 |
self.g.add(bb, 0, 4, growx = 1) |
self.g.add(bb, 0, 4, growx = 1) |
97 |
|
|
119 |
break |
break |
120 |
|
|
121 |
screen.popWindow() |
screen.popWindow() |
122 |
anaconda.id.timezone.setTimezoneInfo(self.l.current().replace(" ", "_"), asUtc = self.c.selected()) |
anaconda.id.timezone.setTimezoneInfo(self.l.current().replace(" ", "_"), asUtc = 1) |
123 |
|
|
124 |
return INSTALL_OK |
return INSTALL_OK |
125 |
|
|