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
This commit is contained in:
Michael Zamot 2019-02-28 13:42:55 -07:00
parent fb48abc35a
commit dc35a8af83

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