aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/UtilTest.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-10-29 09:39:22 +0200
committerGitHub <noreply@github.com>2016-10-29 09:39:22 +0200
commite48fa1c3370632b5f8a2dcdeeabda217f50b3539 (patch)
treefdc7176cffe1f6e0a306efe0ccce149584e7f896 /tests/lib/UtilTest.php
parent035890aeb1b6e540396fd3c81841b60ea6d76f94 (diff)
parenta78f6e95869272b2d5cf34bd3374a9208ae80870 (diff)
downloadnextcloud-server-e48fa1c3370632b5f8a2dcdeeabda217f50b3539.tar.gz
nextcloud-server-e48fa1c3370632b5f8a2dcdeeabda217f50b3539.zip
Merge pull request #1948 from nextcloud/move_away_lagacy_oc_l10n
Move away from legacy OC_L10N
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);