aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AdminPanel/Module/Clock.pm
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-06-24 15:35:31 +0200
committerAngelo Naselli <anaselli@linux.it>2014-06-24 15:35:31 +0200
commit4f80ad579583eceeca0411557af092de2a363d7b (patch)
tree933fae9c4a34c25d963d2fb4483c3d0d013b0108 /lib/AdminPanel/Module/Clock.pm
parent1c5bfcf6a198bb5726eac311905c2cc73c79f357 (diff)
downloadmanatools-4f80ad579583eceeca0411557af092de2a363d7b.tar
manatools-4f80ad579583eceeca0411557af092de2a363d7b.tar.gz
manatools-4f80ad579583eceeca0411557af092de2a363d7b.tar.bz2
manatools-4f80ad579583eceeca0411557af092de2a363d7b.tar.xz
manatools-4f80ad579583eceeca0411557af092de2a363d7b.zip
Fixed UTC value check
Diffstat (limited to 'lib/AdminPanel/Module/Clock.pm')
-rw-r--r--lib/AdminPanel/Module/Clock.pm11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/AdminPanel/Module/Clock.pm b/lib/AdminPanel/Module/Clock.pm
index 5525dda3..de733575 100644
--- a/lib/AdminPanel/Module/Clock.pm
+++ b/lib/AdminPanel/Module/Clock.pm
@@ -286,11 +286,14 @@ sub _adminClockPanel {
default_item => $timezone->{ZONE},
list => $timezones});
if ($item) {
- $timezone->{UTC} = $self->sh_gui->ask_YesOrNo({
- title => $self->loc->N("GMT - DrakClock"),
- text => $self->loc->N("Is your hardware clock set to GMT?"),
- default_button => $timezone->{UTC},
+ my $utc = lc $timezone->{UTC};
+ $utc = ($utc eq "false" || $utc eq "0") ? 0 : 1;
+ $utc = $self->sh_gui->ask_YesOrNo({
+ title => $self->loc->N("GMT - DrakClock"),
+ text => $self->loc->N("Is your hardware clock set to GMT?"),
+ default_button => $utc,
});
+ $timezone->{UTC} = $utc == 1 ? 'true' : 'false';
$timezone->{ZONE} = $item;
$timeZoneLbl->setValue($timezone->{ZONE});
}