Inability to use a timestamp with milli/micro seconds

Aperta
#234 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
1-3 ore
Idoneità per principianti
58/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
php
Ambito
backend

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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di segmentio/analytics-php

Tutte le issue di segmentio/analytics-php

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.