Merge pull request #7898 from owncloud/ext-swiftmtime

Fixed mtime reading from OpenStack API
remotes/origin/ldap_group_count
Vincent Petry 11 years ago
commit 1469ce7b38
  1. 4
      apps/files_external/lib/swift.php

@ -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…
Cancel
Save