Skip to content
Snippets Groups Projects
Commit cf1ce903 authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Fix for strict types

parent 373da8fb
No related branches found
No related tags found
No related merge requests found
...@@ -88,9 +88,9 @@ class File extends \SimpleSAML\Stats\Output ...@@ -88,9 +88,9 @@ class File extends \SimpleSAML\Stats\Output
Assert::notNull($data['time']); Assert::notNull($data['time']);
$time = $data['time']; $time = $data['time'];
$milliseconds = (int) (($time - (int) $time) * 1000); $milliseconds = intval((($time - intval($time)) * 1000));
$timestamp = gmdate('Y-m-d\TH:i:s', $time) . sprintf('.%03dZ', $milliseconds); $timestamp = gmdate('Y-m-d\TH:i:s', intval($time)) . sprintf('.%03dZ', $milliseconds);
$outDate = substr($timestamp, 0, 10); // The date-part of the timstamp $outDate = substr($timestamp, 0, 10); // The date-part of the timstamp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment