diff options
author | damien <damien@mandriva.com> | 2001-03-05 19:59:04 +0000 |
---|---|---|
committer | damien <damien@mandriva.com> | 2001-03-05 19:59:04 +0000 |
commit | 604a4ff75f037782991017a51270b38667929757 (patch) | |
tree | 9840f7420c29afcb67941e752a5216f24dbcfcd6 /clock.pm | |
parent | eea4eaf36f961d7d05a2e8d9f235a63cac0f93e3 (diff) | |
download | control-center-604a4ff75f037782991017a51270b38667929757.tar control-center-604a4ff75f037782991017a51270b38667929757.tar.gz control-center-604a4ff75f037782991017a51270b38667929757.tar.bz2 control-center-604a4ff75f037782991017a51270b38667929757.tar.xz control-center-604a4ff75f037782991017a51270b38667929757.zip |
updated
Diffstat (limited to 'clock.pm')
-rwxr-xr-x | clock.pm | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -116,7 +116,8 @@ $window->show_all; Gtk->main_iteration while Gtk->events_pending; $calendar->realize; -(undef,undef,undef,$old_day,$old_month,$old_year) = localtime(time); +(undef,undef,$h_old,$old_day,$old_month,$old_year) = localtime(time); +$is24 = $h_old>12; $old_year += 1900; $calendar->select_month($old_month, $old_year); $calendar->select_day($old_day); @@ -139,6 +140,7 @@ sub changed { $h_old= $adj_h->get_value; $is24 = !$is24; } + $h_old= $adj_h->get_value; } sub spinned { |