summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system.php
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-09-30 18:21:44 -0300
committerRenato Botelho <renato@netgate.com>2015-09-30 18:21:44 -0300
commit60ff91f1b5dace563e1a6a62c3a90162782b3d8a (patch)
tree89110ebb0ac6c8297da7736a98de4081838f7358 /src/usr/local/www/system.php
parent9cffad03967f2f02a3d4632173ddfbfb0dbd21e7 (diff)
downloadpfsense-60ff91f1b5dace563e1a6a62c3a90162782b3d8a.zip
pfsense-60ff91f1b5dace563e1a6a62c3a90162782b3d8a.tar.gz
Remove /usr/share/zoneinfo.tgz and use FreeBSD stock zoneinfo. It fixes #4726
Diffstat (limited to 'src/usr/local/www/system.php')
-rw-r--r--src/usr/local/www/system.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/usr/local/www/system.php b/src/usr/local/www/system.php
index c848f52..4827d18 100644
--- a/src/usr/local/www/system.php
+++ b/src/usr/local/www/system.php
@@ -72,6 +72,7 @@ require("guiconfig.inc");
require_once("functions.inc");
require_once("filter.inc");
require_once("shaper.inc");
+require_once("system.inc");
$pconfig['hostname'] = $config['system']['hostname'];
$pconfig['domain'] = $config['system']['domain'];
@@ -114,9 +115,7 @@ if ($pconfig['timezone'] <> $_POST['timezone']) {
filter_pflog_start(true);
}
-exec('/usr/bin/tar -tzf /usr/share/zoneinfo.tgz', $timezonelist);
-$timezonelist = array_filter($timezonelist, 'is_timezone');
-sort($timezonelist);
+$timezonelist = system_get_timezone_list();
$multiwan = false;
$interfaces = get_configured_interface_list();
@@ -456,4 +455,4 @@ $form->add($section);
print $form;
-include("foot.inc"); \ No newline at end of file
+include("foot.inc");
OpenPOWER on IntegriCloud