summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-12-16 15:34:55 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-12-16 16:16:22 +0100
commit26100a6dfbd55d12de689d2b2e865d058e58046f (patch)
tree0c62844eb8d53b13c3bba7936e9e67398e4a922b /tests
parent5b9c453071fe900529cd26b88fbc681d8b153b43 (diff)
downloadnextcloud-server-26100a6dfbd55d12de689d2b2e865d058e58046f.tar.gz
nextcloud-server-26100a6dfbd55d12de689d2b2e865d058e58046f.zip
Move timezone logic out of server.php
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/util.php2
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);