mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 22:32:40 +08:00
#2359 Bugfix in normalizeDatetimeValue after regression test
This commit is contained in:
@ -1204,9 +1204,9 @@ class Formatter extends yii\base\Component
|
||||
}
|
||||
} else {
|
||||
$FormatPatterns = $this->dbFormat;
|
||||
$FormatPatterns['date'] = $this->dateFormat;
|
||||
$FormatPatterns['time'] = $this->timeFormat;
|
||||
$FormatPatterns['datetime'] = $this->datetimeFormat;
|
||||
$FormatPatterns['locDate'] = $this->dateFormat;
|
||||
$FormatPatterns['locTime'] = $this->timeFormat;
|
||||
$FormatPatterns['locDatetime'] = $this->datetimeFormat;
|
||||
}
|
||||
|
||||
if (is_string($value)) {
|
||||
|
||||
Reference in New Issue
Block a user