Comparing
#9 with
#10
Content
[...]
```php
'formatter' => [
'class' => 'yii\i18n\Formatter',
'dateFormat' => 'php:d-M-Y',
'datetimeFormat' => '
php:d-M-Y H:i:s',
'timeFormat' => '
php:H:i:s',
]
```[...]
```php
class Setup {
const DATE_FORMAT = 'php:Y-m-d';
const DATETIME_FORMAT = '
php:Y-m-d H:i:s';
const TIME_FORMAT = '
php:H:i:s';
public static function convert($dateStr, $type='date', $format = null) {
if ($type === 'datetime') {
$fmt = ($format == null) ? self::DATETIME_FORMAT : $format;
}[...]