forked from extern/egroupware
moved to setup-cli, as post_install does not use date, but setup-cli does and ini_set does not work accross processes
This commit is contained in:
parent
34ad2c9722
commit
8009d3ccf6
@ -76,14 +76,6 @@ if (($lang = isset($_ENV['LANG']) ? $_ENV['LANG'] : $_SERVER['LANG']))
|
|||||||
}
|
}
|
||||||
$config['source_dir'] = dirname(dirname(dirname(__FILE__)));
|
$config['source_dir'] = dirname(dirname(dirname(__FILE__)));
|
||||||
|
|
||||||
// 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);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set distribution spezific defaults
|
* Set distribution spezific defaults
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user