Commit 1469ce7b authored by Vincent Petry's avatar Vincent Petry
Browse files

Merge pull request #7898 from owncloud/ext-swiftmtime

Fixed mtime reading from OpenStack API
parents c9ccacb9 fa00a186
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment