diff options
author | Angelo Naselli <anaselli@linux.it> | 2014-06-24 15:35:31 +0200 |
---|---|---|
committer | Angelo Naselli <anaselli@linux.it> | 2014-06-24 15:35:31 +0200 |
commit | 4f80ad579583eceeca0411557af092de2a363d7b (patch) | |
tree | 933fae9c4a34c25d963d2fb4483c3d0d013b0108 /lib/AdminPanel | |
parent | 1c5bfcf6a198bb5726eac311905c2cc73c79f357 (diff) | |
download | colin-keep-4f80ad579583eceeca0411557af092de2a363d7b.tar colin-keep-4f80ad579583eceeca0411557af092de2a363d7b.tar.gz colin-keep-4f80ad579583eceeca0411557af092de2a363d7b.tar.bz2 colin-keep-4f80ad579583eceeca0411557af092de2a363d7b.tar.xz colin-keep-4f80ad579583eceeca0411557af092de2a363d7b.zip |
Fixed UTC value check
Diffstat (limited to 'lib/AdminPanel')
-rw-r--r-- | lib/AdminPanel/Module/Clock.pm | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/AdminPanel/Module/Clock.pm b/lib/AdminPanel/Module/Clock.pm index 5525dda..de73357 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}); } |