Skip to content

Commit

Permalink
remove function adjustDate
Browse files Browse the repository at this point in the history
  • Loading branch information
Andres Campanario committed May 1, 2024
1 parent 0ebff5c commit 252b69c
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/Traits/InertiaResponseTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 252b69c

Please sign in to comment.