]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix modified date for external shares
authorRobin Appelman <icewind@owncloud.com>
Fri, 13 Jun 2014 12:25:45 +0000 (14:25 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Sat, 14 Jun 2014 08:22:38 +0000 (10:22 +0200)
apps/files_sharing/ajax/shareinfo.php

index c5764867d56be83e2b373a86f2c5e17aba3777f0..e3735ddadd5c35130968ed9a30608c0af3571a7b 100644 (file)
@@ -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);
 }