Skip to content

Commit 9516d64

Browse files
authored
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.
1 parent 67c8ec8 commit 9516d64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

submit-event.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152

153153
// Generate days and months arrays for form
154154
for ($i = 1; $i <= 7; $i++) {
155-
$days[$i] = date('l', mktime(12, 0, 0, 4, $i));
155+
$days[$i] = date('l', mktime(12, 0, 0, 4, $i, 2012));
156156
}
157157
for ($i = 1; $i <= 12; $i++) {
158158
$months[$i] = date('F', mktime(12, 0, 0, $i, 1));

0 commit comments

Comments
 (0)