From 9516d640babc95e8e45ef7f7a3413abf6f0b3786 Mon Sep 17 00:00:00 2001 From: Louis-Arnaud Date: Tue, 17 Mar 2026 12:01:52 +0100 Subject: [PATCH] Fix weekday dropdown mismatch in submit-event form (#1218) (#1809) The $days array in submit-event.php used the current year implicitly while layout.inc hardcoded 2012, causing weekday index mismatches in the recurring event preview. --- submit-event.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submit-event.php b/submit-event.php index 7b5fdabed..2d2ac2004 100644 --- a/submit-event.php +++ b/submit-event.php @@ -152,7 +152,7 @@ if (count($errors)) { display_errors($errors); } // Generate days and months arrays for form for ($i = 1; $i <= 7; $i++) { - $days[$i] = date('l', mktime(12, 0, 0, 4, $i)); + $days[$i] = date('l', mktime(12, 0, 0, 4, $i, 2012)); } for ($i = 1; $i <= 12; $i++) { $months[$i] = date('F', mktime(12, 0, 0, $i, 1));