Inability to use a timestamp with milli/micro seconds
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 1/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 58/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- PHP
- Stelle
- 257
- Fork
- 127
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di segmentio/analytics-php
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
segmentio/analytics-php#242 · 1 reazione ·
Tutte le issue di segmentio/analytics-php
Issue simili
-
priority: p3
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
googleapis/librarian#7636 ·
-
0. Needs triage bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
nextcloud/fulltextsearch#1011 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
phpstan/phpstan-doctrine#794 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
Automattic/static-site-importer#1767 ·