diff --git a/lib/Cake/View/Helper/FormHelper.php b/lib/Cake/View/Helper/FormHelper.php index fc9312057..7c1afdb7e 100644 --- a/lib/Cake/View/Helper/FormHelper.php +++ b/lib/Cake/View/Helper/FormHelper.php @@ -3030,7 +3030,12 @@ protected function _generateOptions($name, $options = array()) { } else { for ($m = 1; $m <= 12; $m++) { $data[sprintf("%02s", $m)] = datefmt_format( - datefmt_create(locale: setLocale(LC_TIME, 0), pattern: "MM"), + datefmt_create( + locale: setLocale(LC_TIME, 0), + dateType: IntlDateFormatter::FULL, + timeType: IntlDateFormatter::FULL, + pattern: "MM" + ), mktime(1, 1, 1, $m, 1, 1999) ); }