diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-10-28 22:08:32 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-10-28 22:16:28 +0200 |
commit | 83e7cfd13a6592d72c29eabdfce61c91f3d49630 (patch) | |
tree | befb9165faf3426641ed3c286a0f4c45c3d769f9 /tests/lib/UtilTest.php | |
parent | 740659a04c28f8b2bfd9265d459dd3bca202300f (diff) | |
download | nextcloud-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.php | 2 |
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); |