feat: format dates to Indonesian 'd M Y' (e.g. 10 Okt 2026) and 'H:i WIB'
This commit is contained in:
@@ -19,6 +19,6 @@ class AppServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function boot(): void
|
||||
{
|
||||
//
|
||||
\Carbon\Carbon::setLocale('id');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -192,7 +192,7 @@
|
||||
<!-- Waktu Verifikasi -->
|
||||
<td class="py-3 px-4 whitespace-nowrap">
|
||||
<div class="font-bold text-slate-900">
|
||||
{{ $validatedTime ? $validatedTime->format('d/m/Y') : '-' }}
|
||||
{{ $validatedTime ? $validatedTime->locale('id')->translatedFormat('d M Y') : '-' }}
|
||||
</div>
|
||||
<div class="text-[11px] text-slate-500 flex items-center gap-1 font-mono">
|
||||
<i class="fa-regular fa-clock text-[10px]"></i>
|
||||
|
||||
@@ -159,8 +159,8 @@
|
||||
<tr class="hover:bg-slate-50/70 transition">
|
||||
<!-- Tanggal & Waktu -->
|
||||
<td class="py-3.5 px-4 text-center whitespace-nowrap">
|
||||
<div class="font-bold text-slate-900">{{ $act->recorded_at->format('d/m/Y') }}</div>
|
||||
<div class="text-[10px] font-mono text-slate-400 font-medium">{{ $act->recorded_at->format('H:i') }} WIB</div>
|
||||
<div class="font-bold text-slate-900">{{ $act->recorded_at->locale('id')->translatedFormat('d M Y') }}</div>
|
||||
<div class="text-xs text-slate-400 font-medium mt-0.5">{{ $act->recorded_at->format('H:i') }} WIB</div>
|
||||
</td>
|
||||
|
||||
<!-- Kode LV -->
|
||||
|
||||
Reference in New Issue
Block a user