Skip to content

Commit

Permalink
Merge pull request #14678 from PascaleBeier/3.x
Browse files Browse the repository at this point in the history
Mitigate Carbon Month Overflow Bug on 31st of a month
  • Loading branch information
danharrin authored Oct 31, 2024
2 parents 858d416 + d43cef2 commit 5aba3dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected function getMonths(): array
{
return collect(range(1, 12))
->mapWithKeys(fn (int $month): array => [
$month => now()->setMonth($month)->getTranslatedMonthName(),
$month => now()->setMonth($month)->setDay(1)->getTranslatedMonthName(),
])
->all();
}
Expand Down

0 comments on commit 5aba3dc

Please sign in to comment.