fix date format

This commit is contained in:
omair saleh
2021-06-17 14:54:39 +08:00
parent 0075378e16
commit cba54e69a3
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ class DocumentResource extends JsonResource
'document_type' => $this->document_type,
'owner' => new CompanyResource($this->whenLoaded('owner')),
'files' => FileResource::collection($this->files),
'created_at' => Carbon::parse($this->created_at)->format('d-m-Y H:s:i')
'created_at' => Carbon::parse($this->created_at)->setTimezone('UTC')->format('d-m-Y H:s:i')
];
}
}
+5
View File
@@ -1,5 +1,6 @@
<?php
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\Route;
/*
@@ -58,3 +59,7 @@ Route::get('/transfer/{marking}', function ($marking) {
Route::get('/transfer/merge/{marking}', function ($marking) {
return view('pages.booking_merge', ['marking' => $marking]);
})->name('booking.merge');
Route::get('/clock', function () {
dd(Carbon::now());
});