This commit is contained in:
toom1996
2025-07-17 11:37:15 +08:00
parent 9a76ce372b
commit f0eed20b0a
5 changed files with 37 additions and 6 deletions

View File

@ -21,6 +21,8 @@ namespace App\Model;
* @property int $is_record
* @property string $cover
* @property int $is_delete
* @property string $source_url
* @property string $source_platform
* @property-read mixed $created_at
*/
class AppNews extends Model
@ -44,6 +46,6 @@ class AppNews extends Model
public function getCreatedAtAttribute($value)
{
return date('Y-m-d H:i:s', intval($value));
return date('Y-m-d', intval($value));
}
}