wesmiler hai 1 día
pai
achega
a37ce8878b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Models/GoodsCommentModel.php

+ 1 - 1
app/Models/GoodsCommentModel.php

@@ -27,7 +27,7 @@ class GoodsCommentModel extends BaseModel
     // 时间
     // 时间
     public function getTimeTextAttribute()
     public function getTimeTextAttribute()
     {
     {
-        return $this->create_time? datetime($this->create_time,'Y-m-d H:i:s') : '';
+        return $this->create_time? dateFormat($this->create_time,'Y-m-d') : '';
     }
     }
 
 
     /**
     /**