Commit 1ebe46c6 by Qiang Xue

Fixed test break.

parent 26b556a6
...@@ -76,11 +76,6 @@ class Formatter extends Component ...@@ -76,11 +76,6 @@ class Formatter extends Component
if ($this->timeZone === null) { if ($this->timeZone === null) {
$this->timeZone = Yii::$app->timeZone; $this->timeZone = Yii::$app->timeZone;
} }
if (is_string($this->timeZone)) {
$this->timeZone = new \DateTimeZone($this->timeZone);
} elseif ($this->timeZone instanceof IntlTimeZone) {
$this->timeZone = $this->timeZone->toDateTimeZone();
}
if (empty($this->booleanFormat)) { if (empty($this->booleanFormat)) {
$this->booleanFormat = [Yii::t('yii', 'No'), Yii::t('yii', 'Yes')]; $this->booleanFormat = [Yii::t('yii', 'No'), Yii::t('yii', 'Yes')];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment