mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
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:
parent
60bb9a9b56
commit
ceb2a1d4ed
1 changed files with 3 additions and 2 deletions
|
@ -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'));
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Add table
Reference in a new issue