mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
fixes #4762, monthNames count
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7046 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
13a717aed6
commit
0bfa2f72bf
1 changed files with 1 additions and 1 deletions
|
@ -1642,7 +1642,7 @@ class FormHelper extends AppHelper {
|
||||||
$data['11'] = __('November', true);
|
$data['11'] = __('November', true);
|
||||||
$data['12'] = __('December', true);
|
$data['12'] = __('December', true);
|
||||||
} else {
|
} else {
|
||||||
for ($m = 1; $m < 12; $m++) {
|
for ($m = 1; $m <= 12; $m++) {
|
||||||
$data[sprintf("%02s", $m)] = strftime("%m", mktime(1, 1, 1, $m, 1, 1999));
|
$data[sprintf("%02s", $m)] = strftime("%m", mktime(1, 1, 1, $m, 1, 1999));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue