1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

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.
This commit is contained in:
Louis-Arnaud
2026-03-17 12:01:52 +01:00
committed by GitHub
parent 67c8ec8081
commit 9516d640ba

View File

@@ -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));