From 3809fee0a7bb8fb5e0b1e063cb607afe354d9b3e Mon Sep 17 00:00:00 2001 From: Brad Estey Date: Wed, 31 Jul 2013 16:37:51 -0400 Subject: [PATCH] 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 --- FormBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FormBuilder.php b/FormBuilder.php index d406376..868da9c 100755 --- a/FormBuilder.php +++ b/FormBuilder.php @@ -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);