tbrehm
2012-01-06 2dd6746808c19821f5d16ddc2e214c1701019daa
- Improvded timezone setting.
3 files modified
6 ■■■■ changed files
install/update.php 2 ●●● patch | view | raw | blame | history
interface/lib/app.inc.php 2 ●●● patch | view | raw | blame | history
server/lib/app.inc.php 2 ●●● patch | view | raw | blame | history
install/update.php
@@ -97,7 +97,7 @@
$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"];
interface/lib/app.inc.php
@@ -32,7 +32,7 @@
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) {
server/lib/app.inc.php
@@ -29,7 +29,7 @@
*/
//* 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 {