analytics-php icon indicating copy to clipboard operation
analytics-php copied to clipboard

Inability to use a timestamp with milli/micro seconds

Open antonioturdo opened this issue 7 months ago • 0 comments

In the comment of the formatTime method of the Client class it is argued that it is possible to use the result of microtime(true), which is a float. But in the only place where the method is used, in the message method of the same class, the value is cast to integer, making it effectively impossible to pass a timestamp with the precision of milli / micro seconds.

For reference, I saw that the cast was added in this refactoring.

I am going to open a PR to remove the cast to integer.

antonioturdo avatar Jul 06 '24 10:07 antonioturdo