feat: format dates to Indonesian 'd M Y' (e.g. 10 Okt 2026) and 'H:i WIB'

This commit is contained in:
Wahyudin
2026-10-13 16:21:00 +07:00
parent f9489004e8
commit c8eedac460
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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>
+2 -2
View File
@@ -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 -->