From b5b488b27cfcf8ef1c8f8182f388de443d1aed26 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq.com> Date: Tue, 19 May 2026 10:45:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=BC=80=E5=A7=8B=E6=B4=BB?= =?UTF-8?q?=E5=8A=A8=E6=A8=A1=E5=BC=8F=E8=84=9A=E6=9C=AC3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Console/Commands/AutomaticallyStartActivity.php | 2 +- app/Models/EventCalendar.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Console/Commands/AutomaticallyStartActivity.php b/app/Console/Commands/AutomaticallyStartActivity.php index c1a6439..01ebd6d 100644 --- a/app/Console/Commands/AutomaticallyStartActivity.php +++ b/app/Console/Commands/AutomaticallyStartActivity.php @@ -94,7 +94,7 @@ class AutomaticallyStartActivity extends Command $oldValue = $model->toArray(); $model->update([ 'status' => $status, - 'updated_at' => get_datetime() + 'updated_at' => date("Y-m-d H:i:s", time()) ]); // 记录日志 $this->logService->logUpdated($model, $oldValue); diff --git a/app/Models/EventCalendar.php b/app/Models/EventCalendar.php index 51228ba..e0a3811 100644 --- a/app/Models/EventCalendar.php +++ b/app/Models/EventCalendar.php @@ -30,11 +30,11 @@ class EventCalendar extends Model public function getStartTimeAttribute($value): string { - return get_datetime('date_time', strtotime($value)); + return date('Y-m-d H:i', strtotime($value)); } public function getEndTimeAttribute($value): string { - return get_datetime('date_time', strtotime($value)); + return date('Y-m-d H:i', strtotime($value)); } }