From b2ccdd46e5c970dc5847a52eb3e3ab35cccee0cb Mon Sep 17 00:00:00 2001 From: ADmad Date: Sun, 24 Jun 2012 23:11:52 +0530 Subject: [PATCH] Fixed test failing when server's timezone is not UTC --- lib/Cake/Test/Case/Utility/CakeTimeTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Test/Case/Utility/CakeTimeTest.php b/lib/Cake/Test/Case/Utility/CakeTimeTest.php index 28ccb40aa..cfba945d3 100644 --- a/lib/Cake/Test/Case/Utility/CakeTimeTest.php +++ b/lib/Cake/Test/Case/Utility/CakeTimeTest.php @@ -538,7 +538,7 @@ class CakeTimeTest extends CakeTestCase { $result = $this->Time->format('Y-m-d', null, 'never'); $this->assertEquals('never', $result); - $result = $this->Time->format('2012-01-13', '%d-%m-%Y', 'invalid', 'UTC'); + $result = $this->Time->format('2012-01-13', '%d-%m-%Y', 'invalid'); $this->assertEquals('13-01-2012', $result); $result = $this->Time->format('nonsense', '%d-%m-%Y', 'invalid', 'UTC');