diff options
Diffstat (limited to 'lib/AdminPanel/Module')
-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}); } |