mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 12:33:56 +00:00
fix date format
This commit is contained in:
@@ -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')
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user