wesmiler 2 miesięcy temu
rodzic
commit
f9e9a7e608
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/Models/ArticleModel.php

+ 1 - 1
app/Models/ArticleModel.php

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