From 252b69cf2e73a0c4678144dfaf881b33009bf83a Mon Sep 17 00:00:00 2001 From: Andres Campanario Date: Wed, 1 May 2024 08:58:14 +0200 Subject: [PATCH] remove function adjustDate --- src/Traits/InertiaResponseTrait.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/Traits/InertiaResponseTrait.php b/src/Traits/InertiaResponseTrait.php index d8ce6e7..490bd02 100644 --- a/src/Traits/InertiaResponseTrait.php +++ b/src/Traits/InertiaResponseTrait.php @@ -32,19 +32,6 @@ trait InertiaResponseTrait 'JsonViewClass' => \CakeDC\Inertia\View\InertiaJsonView::class, ]; - public function adjustDate(array $data, string $model): array - { - /* - $model = $this->fetchTable($model); - foreach ($model->getSchema()->columns() as $column) { - if ($model->getSchema()->getColumnType($column) === 'timestampfractional' && $data[$column] !== null) { - $data[$column] = Date::parseDate($data[$column], 'YYYY-MM-dd'); - } - } - */ - return $data; - } - public function buildPaginationLinks(PaginatedInterface $paging, string $controller, string $action) { $pagingParams = $paging->pagingParams();