diff --git a/common/config/main.php b/common/config/main.php index 674dd13..59d7b73 100644 --- a/common/config/main.php +++ b/common/config/main.php @@ -6,5 +6,5 @@ return [ 'class' => 'yii\caching\FileCache', ], ], - 'timeZone' => 'Asia/Chongqing', + 'timeZone' => 'Asia/Shanghai', ]; diff --git a/frontend/controllers/DatabaseController.php b/frontend/controllers/DatabaseController.php index 6ff3012..c413d1e 100644 --- a/frontend/controllers/DatabaseController.php +++ b/frontend/controllers/DatabaseController.php @@ -2385,7 +2385,7 @@ class DatabaseController extends BaseController $row['car_man'] = MyLib::substr_cut($car_info->car_man, 8); $row['op_user'] = $item->user?$item->user->getShowName():''; $row['invalid_info'] = $item->invalid->getPath(); - $row['invalid_time'] = $item->invalid->created_at; + $row['invalid_time'] = $item->created_at; $data['rows'][] = $row; } return $data;