diff --git a/tests/includes/scheduler/class-test-actor.php b/tests/includes/scheduler/class-test-actor.php index 49bd54596..3de845c48 100644 --- a/tests/includes/scheduler/class-test-actor.php +++ b/tests/includes/scheduler/class-test-actor.php @@ -318,7 +318,6 @@ public function test_actor_profile_update_sets_updated_attribute() { $activity = \json_decode( $post->post_content, true ); // Verify the updated attribute is set and matches the post's modified date. - $expected_updated = gmdate( 'Y-m-d\TH:i:s\Z', strtotime( $post->post_modified ) ); - $this->assertEqualsWithDelta( $expected_updated, $activity['updated'], 2, 'Updated attribute does not match post modified date.' ); + $this->assertEqualsWithDelta( strtotime( $post->post_modified ), strtotime( $activity['updated'] ), 2, 'Updated attribute does not match post modified date.' ); } }