From a73e279e2ccf8e13ac1c539cc61778a7a40ae907 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Mon, 14 Feb 2022 18:53:59 -0100 Subject: [PATCH] naming Signed-off-by: Maxence Lange --- lib/Service/FilesService.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/Service/FilesService.php b/lib/Service/FilesService.php index aa9e963..0b3a28a 100644 --- a/lib/Service/FilesService.php +++ b/lib/Service/FilesService.php @@ -492,12 +492,13 @@ private function generateFilesDocumentFromFile(string $viewerId, Node $file): Fi $document->setTags($tags); } + $document->setModifiedTime($file->getMTime()); + $stat = $file->stat(); $document->setMore( [ - 'mtime' => $file->getMTime(), - 'ctime' => $this->getInt('ctime', $stat), - 'atime' => $this->getInt('atime', $stat) + 'creationTime' => $this->getInt('ctime', $stat), + 'accessedTime' => $this->getInt('atime', $stat) ] );