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, };