mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 17:04:14 +01:00
check if date.timezone is set, report it and set something if not, as it gives tons of errors in install log
This commit is contained in:
parent
502a00e17f
commit
34ad2c9722
@ -37,6 +37,14 @@ if (ini_get('session.save_handler') == 'files' && !is_writable(ini_get('session.
|
||||
{
|
||||
ini_set('session.save_path','/tmp'); // regular users may have no rights to apache's session dir
|
||||
}
|
||||
// check if date.timezone is set, report it and set something if not, as it gives tons of errors in install log
|
||||
if (!ini_get('date.timezone'))
|
||||
{
|
||||
if (!($tz = date_default_timezone_get())) $tz = 'UTC';
|
||||
echo "No default timezone (php.ini date.timezone) set, we temporary set '$tz'. You should fix that permanent!\n";
|
||||
ini_set('date.timezone',$tz);
|
||||
}
|
||||
|
||||
// setting up the $GLOBALS['egw_setup'] object AND including the header.inc.php if it exists
|
||||
include('inc/functions.inc.php');
|
||||
$GLOBALS['egw_info']['flags']['no_exception_handler'] = 'cli'; // inc/functions.inc.php does NOT set it
|
||||
|
Loading…
Reference in New Issue
Block a user