Fixed test failing when server's timezone is not UTC

This commit is contained in:
ADmad 2012-06-24 23:11:52 +05:30
parent ecdf0e6c6c
commit b2ccdd46e5

View file

@ -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');