Skip to content

Commit

Permalink
getTimestamp() UTC issue RusticiSoftware#64
Browse files Browse the repository at this point in the history
  • Loading branch information
lauren.wyckoff authored and lauren.wyckoff committed Aug 9, 2016
1 parent d329340 commit d8e92eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public static function getTimestamp() {
$microseconds = sprintf('%06d', ($time - floor($time)) * 1000000);
$millseconds = round($microseconds, -3)/1000;
$millsecondsStr = str_pad($millseconds, 3, '0', STR_PAD_LEFT);
$date = (new \DateTime())->format('c');
$date = (new \DateTime(null, new \DateTimeZone("UTC")))->format('c');

$position = strrpos($date, '+');
$date = substr($date,0,$position).'.'.$millsecondsStr.substr($date,$position);
Expand Down

0 comments on commit d8e92eb

Please sign in to comment.