Skip to content

Commit

Permalink
add dateType and timeType params on datefmt_create within FormHelper:…
Browse files Browse the repository at this point in the history
…:_generateOptions
  • Loading branch information
diegosurita committed Jan 17, 2024
1 parent dd50594 commit d2c7c7b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/Cake/View/Helper/FormHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);
}
Expand Down

0 comments on commit d2c7c7b

Please sign in to comment.