Using UTC timezone if one is not set.

This commit is contained in:
Dan Cryer 2014-04-10 14:59:24 +00:00
parent e8abdfcb17
commit 6defc40b13

View file

@ -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) {