Fix GatherPress tests timezone
All checks were successful
PHP Code Checker / PHP Code Checker (pull_request) Successful in 46s
PHPUnit / PHPUnit – PHP 7.4 (pull_request) Successful in 1m5s
PHPUnit / PHPUnit – PHP 8.0 (pull_request) Successful in 1m3s
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Successful in 1m6s
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Successful in 1m5s
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Successful in 1m2s
PHPUnit / PHPUnit – PHP 8.4 (pull_request) Successful in 1m24s

This commit is contained in:
André Menrath 2024-12-19 01:41:55 +01:00
parent 66d2447a90
commit f0507e282f

View file

@ -56,7 +56,7 @@ class Test_GatherPress extends WP_UnitTestCase {
$params = array(
'datetime_start' => '+10 days 15:00:00',
'datetime_end' => '+10 days 16:00:00',
'timezone' => 'America/New_York',
'timezone' => \wp_timezone_string(),
);
$event->save_datetimes( $params );
@ -85,7 +85,7 @@ class Test_GatherPress extends WP_UnitTestCase {
$params = array(
'datetime_start' => '+10 days 15:00:00',
'datetime_end' => '+10 days 16:00:00',
'timezone' => 'America/New_York',
'timezone' => \wp_timezone_string(),
);
$event->save_datetimes( $params );