From 49f9b7ea8e59fa6c120a583fbf3fe9efd324c603 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 13 Jun 2014 14:25:45 +0200 Subject: [PATCH] fix modified date for external shares --- apps/files_sharing/ajax/shareinfo.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/files_sharing/ajax/shareinfo.php b/apps/files_sharing/ajax/shareinfo.php index c5764867d56..e3735ddadd5 100644 --- a/apps/files_sharing/ajax/shareinfo.php +++ b/apps/files_sharing/ajax/shareinfo.php @@ -56,12 +56,14 @@ function getChildInfo($dir, $view) { if ($child->getType() === 'dir') { $formated['children'] = getChildInfo($child, $view); } + $formated['mtime'] = $formated['mtime'] / 1000; $result[] = $formated; } return $result; } $result = \OCA\Files\Helper::formatFileInfo($rootInfo); +$result['mtime'] = $result['mtime'] / 1000; if ($rootInfo->getType() === 'dir') { $result['children'] = getChildInfo($rootInfo, $rootView); } -- 2.39.5