Always use hwclock flags
authorJamie Cameron <jcameron@webmin.com>
Wed, 5 Sep 2007 04:09:35 +0000 (04:09 +0000)
committerJamie Cameron <jcameron@webmin.com>
Wed, 5 Sep 2007 04:09:35 +0000 (04:09 +0000)
time/time-lib.pl

index e238fd0..8d95205 100755 (executable)
@@ -118,7 +118,8 @@ else {
 
 if ($_[1]) {
        # Set hardware clock time to match system time (which is now correct)
-       local $out = &backquote_logged("hwclock --systohc");
+       local $flags = &get_hwclock_flags();
+       local $out = &backquote_logged("hwclock $flags --systohc");
        return $? ? $out : undef;
        }