Skip to content

Commit

Permalink
Rename variable $microseconds to $milliseconds
Browse files Browse the repository at this point in the history
  • Loading branch information
TomA-R committed Jun 28, 2024
1 parent 0b48042 commit caea7b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Bigcommerce/Api/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,8 @@ public static function getTime()

// The response from /time is unix time in milliseconds
$seconds = floor($response / 1000);
$microseconds = $response % 1000;
return DateTime::createFromFormat('U.u', sprintf('%d.%03d', $seconds, $microseconds));
$milliseconds = $response % 1000;
return DateTime::createFromFormat('U.u', sprintf('%d.%03d', $seconds, $milliseconds));
}

/**
Expand Down

0 comments on commit caea7b0

Please sign in to comment.