Skip to content

Commit

Permalink
Removing date_default_timezone_set, as it is only available in php 5+
Browse files Browse the repository at this point in the history
Hoping for the days were this type of commit is no longer needed
  • Loading branch information
lorenzo committed Apr 9, 2010
1 parent 60bb9a9 commit ceb2a1d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cake/tests/cases/libs/view/helpers/time.test.php
Expand Up @@ -662,7 +662,7 @@ function testConvertSpecifiers() {
), 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';
Expand Down Expand Up @@ -753,6 +753,7 @@ function testI18nFormat() {
), 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';
Expand Down Expand Up @@ -783,4 +784,4 @@ function testFormatNewSyntax() {
$this->assertEqual($this->Time->format($time, '%c'), $this->Time->i18nFormat($time, '%c'));
}
}
?>
?>

0 comments on commit ceb2a1d

Please sign in to comment.