Fix transaction online log formatting

This commit is contained in:
Afiq Hamzah
2024-10-08 11:40:25 +08:00
parent d650cc89a4
commit 2d3031f690
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -73,7 +73,7 @@
@foreach ($logs as $log)
<div class="bg-gray-600 text-white border-black p-0 pl-3 py-1 flex justify-between items-center">
@php
$formatTime = fn($x) => \Carbon\Carbon::parse($x)->format('d/m/Y g:i:s A');
$formatTime = fn($x) => \Carbon\Carbon::parse($x, 'UTC')->format('d/m/Y g:i:s A');
@endphp
<span>{{ $formatTime($log['created_at']) }}</span>
</div>
+1 -1
View File
@@ -50,7 +50,7 @@
@foreach ($logs as $log)
<div class="bg-gray-600 text-white border-black p-0 pl-3 py-1 flex justify-between items-center">
@php
$formatTime = fn($x) => \Carbon\Carbon::parse($x)->format('d/m/Y g:i:s A');
$formatTime = fn($x) => \Carbon\Carbon::parse($x, 'UTC')->format('d/m/Y g:i:s A');
@endphp
<span>{{ $formatTime($log['created_at']) }}</span>
</div>