From 3a9534f6995963e913a85a3a735d3a5585ec9375 Mon Sep 17 00:00:00 2001 From: boban Date: Mon, 20 Apr 2026 01:02:40 +0200 Subject: [PATCH] fix: Push-Body zeigt Uhrzeit des Events statt abstrakten Countdown MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Statt "In 15 Stunde(n)" steht nun "Heute um 16:00 Uhr" — eindeutiger Bezug zum Event. Bei < 60 min bleibt der Countdown plus die Uhrzeit. Co-Authored-By: Claude Sonnet 4.6 --- src/app/Console/Commands/ScheduleEventReminders.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/Console/Commands/ScheduleEventReminders.php b/src/app/Console/Commands/ScheduleEventReminders.php index 2562020..b811bf2 100644 --- a/src/app/Console/Commands/ScheduleEventReminders.php +++ b/src/app/Console/Commands/ScheduleEventReminders.php @@ -125,9 +125,9 @@ class ScheduleEventReminders extends Command $diffMin = (int) now($tz)->diffInMinutes($start, false); $body = match (true) { - $diffMin <= 0 => 'Jetzt!', - $diffMin < 60 => 'In ' . $diffMin . ' Minuten', - $diffMin < 1440 => 'In ' . intval($diffMin / 60) . ' Stunde(n)', + $diffMin <= 0 => 'Beginnt jetzt', + $diffMin < 60 => 'In ' . $diffMin . ' Minuten · ' . $start->format('H:i') . ' Uhr', + $diffMin < 1440 => 'Heute um ' . $start->format('H:i') . ' Uhr', default => 'Morgen um ' . $start->format('H:i') . ' Uhr', };