diff options
Diffstat (limited to 'etc/inc/config.inc')
-rw-r--r-- | etc/inc/config.inc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc index aa5fb69..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")) { @@ -207,4 +211,4 @@ if($config_parsed == true) { } } -?> +?>
\ No newline at end of file |