summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xperl-install/standalone/drakclock3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/standalone/drakclock b/perl-install/standalone/drakclock
index 4e014f329..8ed295472 100755
--- a/perl-install/standalone/drakclock
+++ b/perl-install/standalone/drakclock
@@ -292,7 +292,8 @@ sub time_to_rad {
sub Repaint {
my ($drawing_area, $o_update_time) = @_;
- time_to_rad(localtime(time())) if $o_update_time;
+ my ($sec, $min, $hour) = localtime(time());
+ time_to_rad($sec, $min, $hour) if $o_update_time;
my ($width, $height) = ($drawing_area->allocation->width, $drawing_area->allocation->height);
my $dRadians_hour_real = $dRadians_hour + $dRadians_min / 12;
my $dRadians_min_real = POSIX::floor($dRadians_min / $PI * 30) * $PI / 30;