summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-09-18 14:15:47 +0200
committerRobin Appelman <robin@icewind.nl>2017-09-18 15:16:28 +0200
commit91f44f53096e8c23de6dfec2f1ad436a6bc9b628 (patch)
treecc1ab070e2e0c71c67d7d42fafbab1b8aa70f73a
parent3eaf6626f838d180ed4608e6fc581b38d80a0107 (diff)
downloadnextcloud-server-91f44f53096e8c23de6dfec2f1ad436a6bc9b628.tar.gz
nextcloud-server-91f44f53096e8c23de6dfec2f1ad436a6bc9b628.zip
fix undefined constants
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r--apps/files_external/lib/Lib/Storage/AmazonS3.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/Lib/Storage/AmazonS3.php b/apps/files_external/lib/Lib/Storage/AmazonS3.php
index 8a272b2ffc4..d3157bccf66 100644
--- a/apps/files_external/lib/Lib/Storage/AmazonS3.php
+++ b/apps/files_external/lib/Lib/Storage/AmazonS3.php
@@ -450,7 +450,7 @@ class AmazonS3 extends \OC\Files\Storage\Common {
$mtime = time();
}
$metadata = [
- 'lastmodified' => gmdate(\Aws\Common\Enum\DateFormat::RFC1123, $mtime)
+ 'lastmodified' => gmdate(\DateTime::RFC1123, $mtime)
];
$fileType = $this->filetype($path);