Fix issue #209 default timezone
@ -85,6 +85,13 @@ class Application extends Module
throw new InvalidConfigException('The "basePath" configuration is required.');
}
if (isset($config['timeZone'])) {
$this->setTimeZone($config['timeZone']);
unset($config['timeZone']);
} elseif (!ini_get('date.timezone')) {
$this->setTimeZone('UTC');
if (!ini_get('date.timezone')) {