Skip to content

Commit

Permalink
fix: Mitigate Carbon Month Overflow Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
PascaleBeier authored Oct 31, 2024
1 parent 858d416 commit d43cef2
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 d43cef2

Please sign in to comment.