]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove server timezone dependency from files list test
authorJoas Schilling <nickvergessen@owncloud.com>
Tue, 7 Apr 2015 08:12:15 +0000 (10:12 +0200)
committerJoas Schilling <nickvergessen@owncloud.com>
Tue, 7 Apr 2015 08:12:15 +0000 (10:12 +0200)
apps/files/tests/controller/apicontrollertest.php

index 5d32a693ad30f6e55a303c2a07655e02323db52d..bbab711310c387adccd37f64edf2e3e0db41a984 100644 (file)
@@ -110,7 +110,7 @@ class ApiControllerTest extends TestCase {
                                [
                                        'id' => null,
                                        'parentId' => null,
-                                       'date' => 'January 1, 1970 at 12:00:55 AM GMT+0',
+                                       'date' => \OCP\Util::formatDate(55),
                                        'mtime' => 55000,
                                        'icon' => \OCA\Files\Helper::determineIcon($fileInfo),
                                        'name' => 'root.txt',
@@ -175,7 +175,7 @@ class ApiControllerTest extends TestCase {
                                [
                                        'id' => null,
                                        'parentId' => null,
-                                       'date' => 'January 1, 1970 at 12:00:55 AM GMT+0',
+                                       'date' => \OCP\Util::formatDate(55),
                                        'mtime' => 55000,
                                        'icon' => \OCA\Files\Helper::determineIcon($fileInfo1),
                                        'name' => 'root.txt',
@@ -194,7 +194,7 @@ class ApiControllerTest extends TestCase {
                                [
                                        'id' => null,
                                        'parentId' => null,
-                                       'date' => 'January 1, 1970 at 12:16:39 AM GMT+0',
+                                       'date' => \OCP\Util::formatDate(999),
                                        'mtime' => 999000,
                                        'icon' => \OCA\Files\Helper::determineIcon($fileInfo2),
                                        'name' => 'root.txt',