From f0507e282f4d5549591139bc71e7dd232db85e47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Thu, 19 Dec 2024 01:41:55 +0100 Subject: [PATCH] Fix GatherPress tests timezone --- tests/test-class-plugin-gatherpress.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test-class-plugin-gatherpress.php b/tests/test-class-plugin-gatherpress.php index 9a7a076..a3fb55e 100644 --- a/tests/test-class-plugin-gatherpress.php +++ b/tests/test-class-plugin-gatherpress.php @@ -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 );