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, 2 insertions, 4 deletions
diff --git a/perl-install/timezone.pm b/perl-install/timezone.pm
index fdcdf1aa9..3eb4fafe8 100644
--- a/perl-install/timezone.pm
+++ b/perl-install/timezone.pm
@@ -19,10 +19,8 @@ sub getTimeZones {
sub read {
my ($prefix) = @_;
- my $f = "$prefix/etc/sysconfig/clock";
- my %t = getVarsFromSh($f) or return;
-
- (timezone => $t{ZONE}, UTC => text2bool($t{UTC}));
+ my %t = getVarsFromSh("$prefix/etc/sysconfig/clock") or return {};
+ { timezone => $t{ZONE}, UTC => text2bool($t{UTC}) };
}
sub ntp_server {