- Improvded timezone setting.
| | |
| | | $conf['language'] = $conf_old['language']; |
| | | if($conf['language'] == '{language}') $conf['language'] = 'en'; |
| | | $conf['timezone'] = $conf_old['timezone']; |
| | | if($conf['timezone'] == '{timezone}') $conf['timezone'] = 'UTC'; |
| | | if($conf['timezone'] == '{timezone}' or trim($conf['timezone']) == '') $conf['timezone'] = 'UTC'; |
| | | |
| | | if(isset($conf_old["dbmaster_host"])) $conf["mysql"]["master_host"] = $conf_old["dbmaster_host"]; |
| | | if(isset($conf_old["dbmaster_database"])) $conf["mysql"]["master_database"] = $conf_old["dbmaster_database"]; |
| | |
| | | ob_start('ob_gzhandler'); |
| | | |
| | | //* Set timezone |
| | | if(isset($conf['timezone'])) date_default_timezone_set($conf['timezone']); |
| | | if(isset($conf['timezone']) && $conf['timezone'] != '') date_default_timezone_set($conf['timezone']); |
| | | |
| | | //* Set error reporting level when we are not on a developer system |
| | | if(DEVSYSTEM == 0) { |
| | |
| | | */ |
| | | |
| | | //* Set timezone |
| | | if(isset($conf['timezone'])) date_default_timezone_set($conf['timezone']); |
| | | if(isset($conf['timezone']) && $conf['timezone'] != '') date_default_timezone_set($conf['timezone']); |
| | | |
| | | class app { |
| | | |