Fixed FormBuilder selectMonth. mktime() fails on the 31st of a month when the day is null.

See http://www.php.net/manual/en/function.mktime.php#99707
This commit is contained in:
Brad Estey committed 2013-07-31 16:37:51 -04:00
1 parent 07eb181c23
commit 3809fee0a7
1 file changed
+1 -1
+1 -1
View File
@@ -455,7 +455,7 @@ class FormBuilder {
foreach (range(1, 12) as $month)
{
$months[$month] = strftime('%B', mktime(0, 0, 0, $month));
$months[$month] = strftime('%B', mktime(0, 0, 0, $month, 1));
}
return $this->select($name, $months, $selected, $options);