mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
fixing FormHelper::month to use the comment from ticket #700
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5180 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
8ecc250521
commit
00b450929e
1 changed files with 3 additions and 7 deletions
|
@ -1196,13 +1196,9 @@ class FormHelper extends AppHelper {
|
|||
}
|
||||
break;
|
||||
case 'month':
|
||||
$data = array('01'=>strftime("%B", strtotime("1/1/2006")), '02'=>strftime("%B", strtotime("2/1/2006")),
|
||||
'03'=>strftime("%B", strtotime("3/1/2006")), '04'=>strftime("%B", strtotime("4/1/2006")),
|
||||
'05'=>strftime("%B", strtotime("5/1/2006")), '06'=>strftime("%B", strtotime("6/1/2006")),
|
||||
'07'=>strftime("%B", strtotime("7/1/2006")), '08'=>strftime("%B", strtotime("8/1/2006")),
|
||||
'09'=>strftime("%B", strtotime("9/1/2006")), '10'=>strftime("%B", strtotime("10/1/2006")),
|
||||
'11'=>strftime("%B", strtotime("11/1/2006")),'12'=>strftime("%B", strtotime("12/1/2006"))
|
||||
);
|
||||
for($i = 1; $i <= 12; $i++) {
|
||||
$data[sprintf("%02s", $i)] = strftime("%B", mktime(1,1,1,$i,1,1999));
|
||||
}
|
||||
break;
|
||||
case 'year':
|
||||
$current = intval(date('Y'));
|
||||
|
|
Loading…
Add table
Reference in a new issue