From bfd458aeb7980849b190ec5c4b7cbb11e7d81ebd Mon Sep 17 00:00:00 2001 From: "HESU\\HESU" <1696136552@qq.com> Date: Wed, 16 Jul 2025 10:35:07 +0800 Subject: [PATCH] 1 --- app/model/Follow.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/model/Follow.php b/app/model/Follow.php index f0cb9ae..fcbdad6 100644 --- a/app/model/Follow.php +++ b/app/model/Follow.php @@ -39,6 +39,8 @@ class Follow extends Model public $timestamps = true; protected $dates = ['created_at', 'updated_at', 'follow_time']; + + protected $timezone = 'Asia/Shanghai'; protected $casts = [ 'updated_at' => 'datetime:Y-m-d H:i:s', // 指定序列化格式