Using UTC timezone if one is not set.
This commit is contained in:
parent
e8abdfcb17
commit
6defc40b13
|
@ -11,7 +11,10 @@
|
|||
use PHPCI\Logging\Handler;
|
||||
use PHPCI\Logging\LoggerConfig;
|
||||
|
||||
date_default_timezone_set(@date_default_timezone_get());
|
||||
$timezone = ini_get('date.timezone');
|
||||
if (empty($timezone)) {
|
||||
date_default_timezone_set('UTC');
|
||||
}
|
||||
|
||||
// Set up a basic autoloader for PHPCI:
|
||||
$autoload = function ($class) {
|
||||
|
|
Loading…
Reference in a new issue