refactor: translated format date
This commit is contained in:
parent
969fc0c4a0
commit
0055761ab3
@ -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(),
|
||||
|
||||
@ -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()
|
||||
|
||||
@ -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(),
|
||||
|
||||
@ -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(),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user