Fix time conversion in transaction online logs, its already in in malaysia times
This commit is contained in:
@@ -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::createFromFormat('d/m/Y H:i:s', $x)->setTimezone('Asia/Kuala_Lumpur')->format('d/m/Y g:i:s A')
|
||||
$formatTime = fn($x) => \Carbon\Carbon::parse($x)->format('d/m/Y g:i:s A');
|
||||
@endphp
|
||||
<span>{{ $formatTime($log['created_at']) }}</span>
|
||||
</div>
|
||||
|
||||
@@ -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::createFromFormat('d/m/Y H:i:s', $x)->setTimezone('Asia/Kuala_Lumpur')->format('d/m/Y g:i:s A')
|
||||
$formatTime = fn($x) => \Carbon\Carbon::parse($x)->format('d/m/Y g:i:s A');
|
||||
@endphp
|
||||
<span>{{ $formatTime($log['created_at']) }}</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user