Skip to content

Commit

Permalink
second attempt at getting microtime to work right
Browse files Browse the repository at this point in the history
  • Loading branch information
enobrev committed Sep 6, 2016
1 parent f1598d2 commit 5d19ad2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ private static function getRequestHash() {
$sAgent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '';

$aMicroTime = explode(' ', microtime());
$oNow = new DateTime($aMicroTime[1]);
$oNow = new DateTime(date('Y-m-d H:i:s.' . $aMicroTime[0] * 1000000, $aMicroTime[1]));
$aRequest = array(
'date' => $oNow->format('Y-m-d H:i:s.' . $aMicroTime[0] * 1000000)
'date' => $oNow->format('Y-m-d H:i:s.u')
);

if (isset($_SERVER['HTTP_REFERER'])) { $aRequest['referrer'] = $_SERVER['HTTP_REFERER']; }
Expand Down

0 comments on commit 5d19ad2

Please sign in to comment.