summaryrefslogtreecommitdiffstats
path: root/etc/inc/config.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/config.inc')
-rw-r--r--etc/inc/config.inc8
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index 68d3ec9..78c6b04 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -195,11 +195,15 @@ else if ($g['booting'] and !file_exists($g['cf_conf_path'] . "/config.xml") ) {
mwexec("/sbin/mount -a");
}
-
-
if($g['booting']) echo ".";
$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