Convert timestamp key value of metadata in Swift files_external

modified:   apps/files_external/lib/Lib/Storage/Swift.php

Signed-off-by: Michael Zamot <michael@zamot.io>

Convert value of timestamp metadata key in swift files_external to string
pull/14448/head
Michael Zamot 7 years ago
parent fb48abc35a
commit dc35a8af83
  1. 2
      apps/files_external/lib/Lib/Storage/Swift.php

@ -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 .= '/';

Loading…
Cancel
Save