mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Use a more stable timezone.
Regina does not observe DST meaning this test won't fail twice a year.
This commit is contained in:
parent
b583a59264
commit
bc977544c5
1 changed files with 2 additions and 2 deletions
|
@ -1169,7 +1169,7 @@ class CakeTimeTest extends CakeTestCase {
|
|||
$return = CakeTime::listTimezones(null, null, array('abbr' => true));
|
||||
$this->assertTrue(isset($return['Asia']['Asia/Jakarta']));
|
||||
$this->assertEquals('Jakarta - WIB', $return['Asia']['Asia/Jakarta']);
|
||||
$this->assertEquals('Amsterdam - CEST', $return['Europe']['Europe/Amsterdam']);
|
||||
$this->assertEquals('Regina - CST', $return['America']['America/Regina']);
|
||||
|
||||
$return = CakeTime::listTimezones(null, null, array(
|
||||
'abbr' => true,
|
||||
|
@ -1177,7 +1177,7 @@ class CakeTimeTest extends CakeTestCase {
|
|||
'after' => ')',
|
||||
));
|
||||
$this->assertEquals('Jayapura (WIT)', $return['Asia']['Asia/Jayapura']);
|
||||
$this->assertEquals('Amsterdam (CEST)', $return['Europe']['Europe/Amsterdam']);
|
||||
$this->assertEquals('Regina (CST)', $return['America']['America/Regina']);
|
||||
|
||||
$return = CakeTime::listTimezones('#^(America|Pacific)/#', null, false);
|
||||
$this->assertTrue(isset($return['America/Argentina/Buenos_Aires']));
|
||||
|
|
Loading…
Reference in a new issue