refactor: translated format date

This commit is contained in:
Yoga Pangestu 2026-01-14 10:47:59 +07:00
parent 969fc0c4a0
commit 0055761ab3
4 changed files with 5 additions and 5 deletions

View File

@ -53,7 +53,7 @@ public function form(Schema $schema): Schema
DatePicker::make('publication_date')
->label('Tanggal Publikasi')
->placeholder(fn (): string => now()->format('l, d F Y'))
->placeholder(fn (): string => now()->translatedFormat('l, d F Y'))
->native(false)
->displayFormat('l, d F Y')
->required(),

View File

@ -36,14 +36,14 @@ public static function configure(Schema $schema): Schema
->schema([
DatePicker::make('initial_submission_date')
->label('Tanggal Pengajuan Awal')
->placeholder(fn (): string => now()->format('l, d F Y'))
->placeholder(fn (): string => now()->translatedFormat('l, d F Y'))
->native(false)
->displayFormat('l, d F Y')
->required(),
DatePicker::make('final_submission_date')
->label('Tanggal Pengajuan Akhir')
->placeholder(fn (): string => now()->addDays(30)->format('l, d F Y'))
->placeholder(fn (): string => now()->addDays(30)->translatedFormat('l, d F Y'))
->native(false)
->displayFormat('l, d F Y')
->required()

View File

@ -62,7 +62,7 @@ public static function configure(Schema $schema): Schema
DatePicker::make('posting_date')
->label('Tanggal Posting')
->placeholder(fn (): string => now()->format('l, d F Y'))
->placeholder(fn (): string => now()->translatedFormat('l, d F Y'))
->native(false)
->displayFormat('l, d F Y')
->required(),

View File

@ -91,7 +91,7 @@ public static function configure(Schema $schema): Schema
DatePicker::make('release_date')
->label('Tanggal Rilis')
->placeholder(fn (): string => now()->format('l, d F Y'))
->placeholder(fn (): string => now()->translatedFormat('l, d F Y'))
->native(false)
->displayFormat('l, d F Y')
->required(),