Browse Source

Fix time test

euromark 11 years ago
parent
commit
51f3b48f32
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Test/Case/Lib/Utility/TimeLibTest.php

+ 2 - 1
Test/Case/Lib/Utility/TimeLibTest.php

@@ -1111,7 +1111,8 @@ class TimeLibTest extends MyCakeTestCase {
 		Configure::write('Config.timezone', 'Europe/Berlin');
 		date_default_timezone_set('Europe/Berlin');
 
-		$result = TimeLib::tzOffset(2 * HOUR, false);
+		$factor = date('I') ? 2 : 1;
+		$result = TimeLib::tzOffset($factor * HOUR, false);
 		$this->assertEquals(0, $result);
 
 		Configure::write('Config.timezone', $timezone);