时间格式bug

This commit is contained in:
hdm 2021-09-13 22:39:33 +08:00
parent ae84b354cb
commit 539d3609a5

View File

@ -260,7 +260,7 @@ class Api extends BaseController
->limit(10)
->select()->toArray();
foreach ($list as $key => $val) {
$list[$key]['last_login_time'] = date('Y-m-d :h:m:s', $val['last_login_time']);
$list[$key]['last_login_time'] = date('Y-m-d :H:i:s', $val['last_login_time']);
}
$res['data'] = $list;
return table_assign(0, '', $res);