From ddfc61146d18bee82797e7f833a98037ddf48089 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 2 Mar 2017 22:34:50 -0600 Subject: [PATCH] Use a proper date format for transfer ownership * on Windows : is not allowed as filename and doesn't get synced then * uses 2017-03-02 22-00-00 instead of 2017-03-02T22:00:00+00:00 as format Signed-off-by: Morris Jobke --- apps/files/lib/Command/TransferOwnership.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files/lib/Command/TransferOwnership.php b/apps/files/lib/Command/TransferOwnership.php index 78487ce4d9..96281b5226 100644 --- a/apps/files/lib/Command/TransferOwnership.php +++ b/apps/files/lib/Command/TransferOwnership.php @@ -114,7 +114,7 @@ class TransferOwnership extends Command { return 2; } - $date = date('c'); + $date = date('Y-m-d H-i-s'); $this->finalTarget = "$this->destinationUser/files/transferred from $this->sourceUser on $date"; // setup filesystem