Skip to content

Commit

Permalink
GH-2667: fix 'Implicit conversion from float to int loses precision'
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks committed May 16, 2022
1 parent f21d167 commit 98b8113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/config/test-site-details-index.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,6 @@ public function mock_update_plugins_transient() {
public function test__get_current_timestamp() {
$timestamp = Site_Details_Index::instance()->get_current_timestamp();

$this->assertEquals( gmdate( 'd-m-Y', $timestamp / 1000 ), gmdate( 'd-m-Y', round( microtime( true ) ) ) );
$this->assertEquals( gmdate( 'd-m-Y', (int) ( $timestamp / 1000 ) ), gmdate( 'd-m-Y', round( microtime( true ) ) ) );
}
}

0 comments on commit 98b8113

Please sign in to comment.