summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2014-11-25 15:23:09 +0100
committerErmal LUÇI <eri@pfsense.org>2014-11-25 15:23:09 +0100
commit1ad2dc5b74a6039cbe6b04f0b078977e1ae60484 (patch)
tree289658d027ce2d47128292d72ed4dc41f1717066
parent4ec33e13b25761495910061eb1fc6c82604b44f8 (diff)
downloadpfsense-1ad2dc5b74a6039cbe6b04f0b078977e1ae60484.zip
pfsense-1ad2dc5b74a6039cbe6b04f0b078977e1ae60484.tar.gz
Set the timezone even during config.gui.inc to please the timezone selection
-rw-r--r--etc/inc/config.gui.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/inc/config.gui.inc b/etc/inc/config.gui.inc
index 3eec795..be8254f 100644
--- a/etc/inc/config.gui.inc
+++ b/etc/inc/config.gui.inc
@@ -77,6 +77,12 @@ if(file_exists("/debugging")) {
$config = parse_config();
+/* set timezone */
+$timezone = $config['system']['timezone'];
+if (!$timezone)
+ $timezone = "Etc/UTC";
+date_default_timezone_set("$timezone");
+
if($config_parsed == true) {
/* process packager manager custom rules */
if(is_dir("/usr/local/pkg/parse_config")) {
OpenPOWER on IntegriCloud