From ceb2a1d4ed7ed61b502a9f09bfda69c1a7428fb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Lorenzo=20Rodr=C3=ADguez?= Date: Fri, 9 Apr 2010 09:40:27 -0430 Subject: [PATCH] Removing date_default_timezone_set, as it is only available in php 5+ Hoping for the days were this type of commit is no longer needed --- cake/tests/cases/libs/view/helpers/time.test.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cake/tests/cases/libs/view/helpers/time.test.php b/cake/tests/cases/libs/view/helpers/time.test.php index f8bb88d32..1131303f7 100644 --- a/cake/tests/cases/libs/view/helpers/time.test.php +++ b/cake/tests/cases/libs/view/helpers/time.test.php @@ -662,7 +662,7 @@ class TimeHelperTest extends CakeTestCase { ), true); Configure::write('Config.language', 'time_test'); $time = 1263487419; // Thu Jan 14 11:43:39 2010 - date_default_timezone_set('Etc/GMT+5'); + $time = strtotime('-5 hours', $time); $result = $this->Time->convertSpecifiers('%a', $time); $expected = 'jue'; @@ -753,6 +753,7 @@ class TimeHelperTest extends CakeTestCase { ), true); Configure::write('Config.language', 'time_test'); $time = 1263495568; //Thu Jan 14 13:59:28 2010 + $time = strtotime('-5 hours', $time); $result = $this->Time->i18nFormat($time); $expected = '14/01/10'; @@ -783,4 +784,4 @@ class TimeHelperTest extends CakeTestCase { $this->assertEqual($this->Time->format($time, '%c'), $this->Time->i18nFormat($time, '%c')); } } -?> \ No newline at end of file +?>