diff --git a/app/Http/Resources/DocumentResource.php b/app/Http/Resources/DocumentResource.php index f9e83bb0..224263bc 100644 --- a/app/Http/Resources/DocumentResource.php +++ b/app/Http/Resources/DocumentResource.php @@ -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') ]; } } diff --git a/routes/web.php b/routes/web.php index da1c40fe..44158d98 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1,5 +1,6 @@ $marking]); })->name('booking.merge'); + +Route::get('/clock', function () { + dd(Carbon::now()); +});