From 044d1a2c06fcf0ab9dcf5887c4a263dc4cb063b8 Mon Sep 17 00:00:00 2001 From: Awal Hadi Wijaya Date: Tue, 1 Oct 2024 11:14:30 +0700 Subject: [PATCH] Update FormBuilder.php --- src/FormBuilder.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/FormBuilder.php b/src/FormBuilder.php index 7c0dfe5..487c0dd 100644 --- a/src/FormBuilder.php +++ b/src/FormBuilder.php @@ -3,6 +3,7 @@ namespace Collective\Html; use BadMethodCallException; +use Carbon\Carbon; use DateTime; use Illuminate\Contracts\Routing\UrlGenerator; use Illuminate\Contracts\Session\Session; @@ -718,7 +719,7 @@ public function selectMonth($name, $selected = null, $options = [], $format = '% $months = []; foreach (range(1, 12) as $month) { - $months[$month] = strftime($format, mktime(0, 0, 0, $month, 1)); + $months[$month] = Carbon::create()->day(1)->month($month)->translatedFormat('F'); } return $this->select($name, $months, $selected, $options);