Author: Louis-Arnaud (lacatoire) Committer: GitHub (web-flow) Pusher: derickr Date: 2026-03-17T11:01:52Z
Commit: https://github.com/php/web-php/commit/9516d640babc95e8e45ef7f7a3413abf6f0b3786 Raw diff: https://github.com/php/web-php/commit/9516d640babc95e8e45ef7f7a3413abf6f0b3786.diff 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. Changed paths: M submit-event.php Diff: diff --git a/submit-event.php b/submit-event.php index 7b5fdabed6..2d2ac20044 100644 --- a/submit-event.php +++ b/submit-event.php @@ -152,7 +152,7 @@ // 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));
