summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2016-07-24 22:09:05 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2016-07-24 22:09:05 +0200
commit87dd28cb6f3b32bad29d83dfd1d3fe6b4eae30e6 (patch)
tree9864689b82084c141b83fa97cbc1c6073775e2d3
parent587d2f08dad60bc263e7cc8e9fd9d08b1ff06888 (diff)
fix milisecond timestamp on php 5.6
-rw-r--r--lib/Utility/Time.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Utility/Time.php b/lib/Utility/Time.php
index 0379ff955..363583466 100644
--- a/lib/Utility/Time.php
+++ b/lib/Utility/Time.php
@@ -24,7 +24,7 @@ class Time {
$timestamp = floor($utimestamp);
$milliseconds = round(($utimestamp - $timestamp) * 1000000);
$result = ($timestamp * 1000000) + $milliseconds;
- return $result;
+ return intval($result);
}
} \ No newline at end of file