mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user