mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-03 13:25:05 +01:00
setting server timezone as early as possible, to avoid warnings it's not set
This commit is contained in:
parent
80774a3468
commit
bf6d7835ad
@ -127,6 +127,11 @@ class egw extends egw_minimal
|
|||||||
}
|
}
|
||||||
//$GLOBALS['egw_info']['server'] = config::read('phpgwapi'); would unserialize arrays
|
//$GLOBALS['egw_info']['server'] = config::read('phpgwapi'); would unserialize arrays
|
||||||
|
|
||||||
|
// restoring server timezone, to avoid warnings under php5.3
|
||||||
|
if (!empty($GLOBALS['egw_info']['server']['server_timezone']))
|
||||||
|
{
|
||||||
|
date_default_timezone_set($GLOBALS['egw_info']['server']['server_timezone']);
|
||||||
|
}
|
||||||
// setup the other subclasses
|
// setup the other subclasses
|
||||||
// translation class is here only for backward compatibility, as all it's methods can be called static now
|
// translation class is here only for backward compatibility, as all it's methods can be called static now
|
||||||
$this->translation = new translation();
|
$this->translation = new translation();
|
||||||
@ -179,6 +184,11 @@ class egw extends egw_minimal
|
|||||||
{
|
{
|
||||||
$this->db->Link_ID->SetCharSet($GLOBALS['egw_info']['server']['system_charset']);
|
$this->db->Link_ID->SetCharSet($GLOBALS['egw_info']['server']['system_charset']);
|
||||||
}
|
}
|
||||||
|
// restoring server timezone, to avoid warnings under php5.3
|
||||||
|
if (!empty($GLOBALS['egw_info']['server']['server_timezone']))
|
||||||
|
{
|
||||||
|
date_default_timezone_set($GLOBALS['egw_info']['server']['server_timezone']);
|
||||||
|
}
|
||||||
|
|
||||||
register_shutdown_function(array($this, 'shutdown'));
|
register_shutdown_function(array($this, 'shutdown'));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user