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
This commit is contained in:
José Lorenzo Rodríguez 2010-04-09 09:40:27 -04:30
parent 60bb9a9b56
commit ceb2a1d4ed

View file

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