diff options
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/util.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/util.php b/tests/lib/util.php index 1a2cb09f38d..25c9e31beaf 100644 --- a/tests/lib/util.php +++ b/tests/lib/util.php @@ -57,7 +57,7 @@ class Test_Util extends \Test\TestCase { $oldDateTimeFormatter = \OC::$server->query('DateTimeFormatter'); \OC::$server->getSession()->set('timezone', 3); - $newDateTimeFormatter = new \OC\DateTimeFormatter(\OC::$server->getTimeZone(), new \OC_L10N('lib', 'en')); + $newDateTimeFormatter = new \OC\DateTimeFormatter(\OC::$server->getDateTimeZone()->getTimeZone(), new \OC_L10N('lib', 'en')); $this->setDateFormatter($newDateTimeFormatter); $result = OC_Util::formatDate(1350129205, false); |