Merge pull request #7898 from owncloud/ext-swiftmtime
Fixed mtime reading from OpenStack API
This commit is contained in:
commit
1469ce7b38
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue