main.php
return [ 'charset' => 'utf-8', 'language' => 'zh-CN', 'timeZone' => 'Asia/Shanghai', 'components' => ['formatter' => [ 'dateFormat' => 'yyyy-MM-dd', 'timeFormat' => 'HH:mm:ss', 'datetimeFormat' => 'yyyy-MM-dd HH:mm:ss' ] ] ];