From 2534a9e796e6c683b6e071817d8d09b2ef39cd76 Mon Sep 17 00:00:00 2001 From: Gunnar Wrobel
Date: Mon, 12 Apr 2010 10:49:08 +0200 Subject: [PATCH] Ensure the correct timezone here. --- framework/Kolab_Format/test/Horde/Kolab/Format/RecurrenceTest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/framework/Kolab_Format/test/Horde/Kolab/Format/RecurrenceTest.php b/framework/Kolab_Format/test/Horde/Kolab/Format/RecurrenceTest.php index 1917021ab..1e070d4a2 100644 --- a/framework/Kolab_Format/test/Horde/Kolab/Format/RecurrenceTest.php +++ b/framework/Kolab_Format/test/Horde/Kolab/Format/RecurrenceTest.php @@ -47,8 +47,15 @@ class Horde_Kolab_Format_RecurrenceTest extends PHPUnit_Framework_TestCase } Horde_Nls::setCharset('utf-8'); + + $this->_oldTimezone = date_default_timezone_get(); + date_default_timezone_set('Europe/Berlin'); } + public function tearDown() + { + date_default_timezone_set($this->_oldTimezone); + } /** * Test for http://bugs.horde.org/ticket/?id=6388 -- 2.11.0