diff --git a/app/Transformers/Api/Application/LocationTransformer.php b/app/Transformers/Api/Application/LocationTransformer.php index dd65b33c3..0e5c857c6 100644 --- a/app/Transformers/Api/Application/LocationTransformer.php +++ b/app/Transformers/Api/Application/LocationTransformer.php @@ -26,8 +26,8 @@ class LocationTransformer extends Transformer 'id' => $model->id, 'short' => $model->short, 'long' => $model->long, - $model->getUpdatedAtColumn() => $this->formatTimestamp($model->updated_at), - $model->getCreatedAtColumn() => $this->formatTimestamp($model->created_at), + $model->getUpdatedAtColumn() => self::formatTimestamp($model->updated_at), + $model->getCreatedAtColumn() => self::formatTimestamp($model->created_at), ]; } diff --git a/app/Transformers/Api/Application/NodeTransformer.php b/app/Transformers/Api/Application/NodeTransformer.php index 6e6dcc7d9..c0f3b756f 100644 --- a/app/Transformers/Api/Application/NodeTransformer.php +++ b/app/Transformers/Api/Application/NodeTransformer.php @@ -24,8 +24,8 @@ class NodeTransformer extends Transformer { $response = $model->toArray(); - $response[$model->getUpdatedAtColumn()] = $this->formatTimestamp($model->updated_at); - $response[$model->getCreatedAtColumn()] = $this->formatTimestamp($model->created_at); + $response[$model->getUpdatedAtColumn()] = self::formatTimestamp($model->updated_at); + $response[$model->getCreatedAtColumn()] = self::formatTimestamp($model->created_at); $resources = $model->servers()->select(['memory', 'disk'])->get();