]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use a proper date format for transfer ownership 3687/head
authorMorris Jobke <hey@morrisjobke.de>
Fri, 3 Mar 2017 04:34:50 +0000 (22:34 -0600)
committerMorris Jobke <hey@morrisjobke.de>
Fri, 3 Mar 2017 04:36:18 +0000 (22:36 -0600)
* 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 <hey@morrisjobke.de>
apps/files/lib/Command/TransferOwnership.php

index 78487ce4d96e424ec3c6290a0650af72ec7f8283..96281b5226cf75ad7df29cb5238d6f0bb05d5384 100644 (file)
@@ -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