xiaogang 3 năm trước cách đây
mục cha
commit
63d6e5d59a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/Admin/Controllers/UserController.php

+ 1 - 1
app/Admin/Controllers/UserController.php

xqd
@@ -41,7 +41,7 @@ class UserController extends AdminController
         $grid->column('is_vip','VIP')->display(function ($res){
             if($res==1){
                 $str = '<span class="label" style="background:#dda451">VIP</span>';
-                $day = date('Y-m-d',$this->end_day);
+                $day = date('Y-m-d',strtotime($this->end_day));
                 $str .= '<br>过期时间:'.$day;
             }else{
                 $str = '<span class="label" style="background:#b9c3cd">无</span>';