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 1182c8c41..5abf39751 100644
--- a/perl-install/timezone.pm
+++ b/perl-install/timezone.pm
@@ -56,6 +56,12 @@ sub write {
});
}
+sub reload_sys_clock {
+ my ($t) = @_;
+ require run_program;
+ run_program::run('hwclock', '--hctosys', ($t->{UTC} ? '--utc' : '--localtime'));
+}
+
#- best guesses for a given country
my %c2t = (
'AM' => 'Asia/Yerevan',