mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
Fix various warnings in PHP 8.0
This commit is contained in:
parent
f46b41f437
commit
60465fb2db
23 changed files with 65 additions and 55 deletions
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
class DateTimeTest extends \Codeception\TestCase\Test
|
||||
{
|
||||
private $old_timezone;
|
||||
|
||||
public function _before()
|
||||
{
|
||||
// Add some dummy data to system configuration. Asia/Seoul offset is 32400.
|
||||
|
|
@ -9,14 +11,14 @@ class DateTimeTest extends \Codeception\TestCase\Test
|
|||
Rhymix\Framework\Config::set('locale.internal_timezone', 10800);
|
||||
|
||||
// Set PHP time zone to the internal time zone.
|
||||
$old_timezone = @date_default_timezone_get();
|
||||
$this->old_timezone = @date_default_timezone_get();
|
||||
date_default_timezone_set('Etc/GMT-3');
|
||||
}
|
||||
|
||||
public function _after()
|
||||
{
|
||||
// Restore the old timezone.
|
||||
date_default_timezone_set($old_timezone);
|
||||
date_default_timezone_set($this->old_timezone);
|
||||
}
|
||||
|
||||
public function testZgap()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue