Merge pull request #7898 from owncloud/ext-swiftmtime

Fixed mtime reading from OpenStack API
This commit is contained in:
Vincent Petry 2014-03-27 09:31:37 +01:00
commit 1469ce7b38
1 changed files with 4 additions and 0 deletions

View File

@ -251,6 +251,10 @@ class Swift extends \OC\Files\Storage\Common {
$mtime = $object->extra_headers['X-Object-Meta-Timestamp'];
}
if (!empty($mtime)) {
$mtime = floor($mtime);
}
$stat = array();
$stat['size'] = $object->content_length;
$stat['mtime'] = $mtime;