summaryrefslogtreecommitdiffstats
path: root/perl-install/timezone.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/timezone.pm')
-rw-r--r--perl-install/timezone.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/perl-install/timezone.pm b/perl-install/timezone.pm
index 5babf2061..b072dda3a 100644
--- a/perl-install/timezone.pm
+++ b/perl-install/timezone.pm
@@ -64,6 +64,12 @@ sub write {
UTC => bool2text($t->{UTC}),
ARC => "false",
});
+
+ my $adjtime_file = $::prefix . '/etc/adjtime';
+ my @adjtime = cat_($adjtime_file);
+ @adjtime or @adjtime = ("0.0 0 0.0\n", "0\n");
+ $adjtime[2] = $t->{UTC} ? "UTC\n" : "LOCAL\n";
+ output_p($adjtime_file, @adjtime);
}
sub reload_sys_clock {