From 57b55503fdb8b7db3340a63922a9623487d95e6c Mon Sep 17 00:00:00 2001 From: boban Date: Sun, 19 Apr 2026 23:40:25 +0200 Subject: [PATCH] fix: time_of_day/day_before reminder times parsed as UTC in calculateSendTime Also add 'specific' datetime reminder type support. Co-Authored-By: Claude Sonnet 4.6 --- src/app/Console/Commands/ScheduleEventReminders.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app/Console/Commands/ScheduleEventReminders.php b/src/app/Console/Commands/ScheduleEventReminders.php index fdb069f..54dc8c8 100644 --- a/src/app/Console/Commands/ScheduleEventReminders.php +++ b/src/app/Console/Commands/ScheduleEventReminders.php @@ -220,15 +220,19 @@ class ScheduleEventReminders extends Command 'time_of_day' => Carbon::createFromFormat( 'Y-m-d H:i', $event->starts_at->setTimezone($tz)->format('Y-m-d') . ' ' . ($reminder['time'] ?? '08:00'), - $tz + 'UTC' )->utc(), 'day_before' => Carbon::createFromFormat( 'Y-m-d H:i', $event->starts_at->setTimezone($tz)->subDay()->format('Y-m-d') . ' ' . ($reminder['time'] ?? '18:00'), - $tz + 'UTC' )->utc(), + 'specific' => isset($reminder['datetime']) + ? Carbon::parse($reminder['datetime'])->utc() + : null, + default => null, };