summaryrefslogtreecommitdiffstats
path: root/tests/lib/UtilTest.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-10-28 22:08:32 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-10-28 22:16:28 +0200
commit83e7cfd13a6592d72c29eabdfce61c91f3d49630 (patch)
treebefb9165faf3426641ed3c286a0f4c45c3d769f9 /tests/lib/UtilTest.php
parent740659a04c28f8b2bfd9265d459dd3bca202300f (diff)
downloadnextcloud-server-83e7cfd13a6592d72c29eabdfce61c91f3d49630.tar.gz
nextcloud-server-83e7cfd13a6592d72c29eabdfce61c91f3d49630.zip
Fix more tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/lib/UtilTest.php')
-rw-r--r--tests/lib/UtilTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/UtilTest.php b/tests/lib/UtilTest.php
index a1671191ab8..60e50f750ea 100644
--- a/tests/lib/UtilTest.php
+++ b/tests/lib/UtilTest.php
@@ -91,7 +91,7 @@ class UtilTest extends \Test\TestCase {
$selectedTimeZone = \OC::$server->getDateTimeZone()->getTimeZone(1350129205);
$this->assertEquals($expectedTimeZone, $selectedTimeZone->getName());
- $newDateTimeFormatter = new \OC\DateTimeFormatter($selectedTimeZone, new \OC_L10N('lib', 'en'));
+ $newDateTimeFormatter = new \OC\DateTimeFormatter($selectedTimeZone, \OC::$server->getL10N('lib', 'en'));
$this->overwriteService('DateTimeFormatter', $newDateTimeFormatter);
$result = OC_Util::formatDate(1350129205, false);