wesmiler 2 місяців тому
батько
коміт
f9e9a7e608
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      app/Models/ArticleModel.php

+ 1 - 1
app/Models/ArticleModel.php

@@ -41,7 +41,7 @@ class ArticleModel extends BaseModel
     // 时间
     // 时间
     public function getTimeTextAttribute()
     public function getTimeTextAttribute()
     {
     {
-        return $this->create_time ? dateFormat(strtotime($this->create_time)) : '';
+        return $this->create_time ? format_time(strtotime($this->create_time)) : '';
     }
     }
 
 
     /**
     /**