diff --git a/framework/CHANGELOG.md b/framework/CHANGELOG.md index b366f16..26e443e 100644 --- a/framework/CHANGELOG.md +++ b/framework/CHANGELOG.md @@ -4,6 +4,7 @@ Yii Framework 2 Change Log 2.1.0 under development ----------------------- +- Bug #16065: Remove using `date.timezone` at `yii\base\Application`, use `date_default_timezone_get()` instead (sashsvamir) - Bug #12539: `yii\filters\ContentNegotiator` now generates 406 'Not Acceptable' instead of 415 'Unsupported Media Type' on content-type negotiation fail (PowerGamer1) - Bug #14458: Fixed `yii\filters\VerbFilter` uses case-insensitive comparison for the HTTP method name (klimov-paul) - Enh #879: Caching implementation refactored according to PSR-16 'Simple Cache' specification (klimov-paul) diff --git a/framework/base/Application.php b/framework/base/Application.php index b856989..cb109f1 100644 --- a/framework/base/Application.php +++ b/framework/base/Application.php @@ -245,8 +245,6 @@ abstract class Application extends Module if (isset($config['timeZone'])) { $this->setTimeZone($config['timeZone']); unset($config['timeZone']); - } elseif (!ini_get('date.timezone')) { - $this->setTimeZone('UTC'); } if (isset($config['container'])) {