Merge pull request #14448 from mzamot/master

Convert value of timestamp metadata key in swift files_external
This commit is contained in:
Roeland Jago Douma 2019-03-01 21:26:56 +01:00 committed by GitHub
commit ba155a98db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -451,7 +451,7 @@ class Swift extends \OC\Files\Storage\Common {
if (is_null($mtime)) {
$mtime = time();
}
$metadata = ['timestamp' => $mtime];
$metadata = ['timestamp' => (string)$mtime];
if ($this->file_exists($path)) {
if ($this->is_dir($path) && $path !== '.') {
$path .= '/';