Inability to use a timestamp with milli/micro seconds
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 58/100
Research direction
Read the Client class's formatTime method comment and the message method, where the timestamp is cast to integer. Confirm how microtime(true) is passed through that path, then remove the precision-losing cast. Done means timestamps retain milli- and microsecond precision without changing the existing message behavior.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- PHP
- Stars
- 257
- Forks
- 127
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from segmentio/analytics-php
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
segmentio/analytics-php#242 · 1 reaction ·
All issues in segmentio/analytics-php
Similar issues
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·
-
0. Needs triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nextcloud/fulltextsearch#1011 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
phpstan/phpstan-doctrine#794 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Automattic/static-site-importer#1767 ·