diff --git a/tests/phpunit/tests/post.php b/tests/phpunit/tests/post.php index 241536facf..39a8bae14a 100644 --- a/tests/phpunit/tests/post.php +++ b/tests/phpunit/tests/post.php @@ -1428,6 +1428,6 @@ class Tests_Post extends WP_UnitTestCase { ); $post = get_post( $post_id ); - self::assertEquals( gmdate( 'Y-m-d H:i:s' ), $post->post_date_gmt ); + self::assertEquals( strtotime( gmdate( 'Y-m-d H:i:s' ) ), strtotime( $post->post_date_gmt ), 'The dates should be equal', 2 ); } }