Fix #2946: Use Yii2 default timezone handling

This commit is contained in:
Lucas Bartholemy 2019-01-16 19:06:20 +01:00
parent 7b5ab38f59
commit d434197aee
2 changed files with 1 additions and 12 deletions

View File

@ -89,16 +89,4 @@ class Application extends \yii\web\Application
return parent::beforeAction($action);
}
/**
* @inheritdoc
*/
public function preInit(&$config)
{
if (!isset($config['timeZone']) && date_default_timezone_get()) {
$config['timeZone'] = date_default_timezone_get();
}
parent::preInit($config);
}
}

View File

@ -12,6 +12,7 @@ HumHub Change Log (DEVELOP)
- Chng: Removed `jquery-placeholder` asset and dependency
- Chng: Removed `atwho` asset and dependency
- Cnng: Removed old IE support
- Fix #2946: Use Yii2 default timezone handling