From dd57cb45fba3f70ab374bcdf6f8b80b400cfda64 Mon Sep 17 00:00:00 2001 From: Tb Fajri Date: Wed, 31 Jan 2024 13:00:47 +0700 Subject: [PATCH] time zone asia/jakarta --- Modules/Internal/Http/Controllers/Api/ReportLogController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/Internal/Http/Controllers/Api/ReportLogController.php b/Modules/Internal/Http/Controllers/Api/ReportLogController.php index f3b99033..829c61fe 100644 --- a/Modules/Internal/Http/Controllers/Api/ReportLogController.php +++ b/Modules/Internal/Http/Controllers/Api/ReportLogController.php @@ -188,6 +188,7 @@ class ReportLogController extends Controller $provider = Organization::where('id', $row['organization_id'])->first(); $documentQty = File::where(['fileable_type' => 'App\Models\RequestLog', 'fileable_id' => $row['id']])->get()->toArray(); $parsedDateTime = Carbon::parse($row['created_at']); + $parsedDateTime->tz = 'Asia/Jakarta'; $formattedDateTime = $parsedDateTime->format('Y-m-d H:i:s'); $timeInsertBenefit = RequestLogBenefit::where('request_log_id', $row['id'])->first();