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:
gwoo 2008-05-26 19:26:44 +00:00
parent 13a717aed6
commit 0bfa2f72bf

View file

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