From dc35a8af830dcb540fb33c8a2444625b94f26da1 Mon Sep 17 00:00:00 2001
From: Michael Zamot <michael@zamot.io>
Date: Thu, 28 Feb 2019 13:42:55 -0700
Subject: [PATCH] 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
---
 apps/files_external/lib/Lib/Storage/Swift.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/files_external/lib/Lib/Storage/Swift.php b/apps/files_external/lib/Lib/Storage/Swift.php
index 689fd700253..67a40310b31 100644
--- a/apps/files_external/lib/Lib/Storage/Swift.php
+++ b/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 .= '/';
-- 
GitLab