Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.x] Remove thousands separator in time records (#876) #877

Merged
merged 1 commit into from
Apr 20, 2020

Conversation

janolivermr
Copy link
Contributor

This overrides the default thousands separator in the PHP number_format function used to format the time entries. This allows requests that take over 1s/1000ms to be summed up correctly.

For a query with a running time of 1.2s, the current time entry in the database will be 1,200.00. When this is passed to parseFloat in the front end it will be parsed as 1.
With the change, the value will be stored as 1200.00 and correctly parsed as 1200.

@driesvints driesvints changed the title Remove thousands separator in time records (#876) [3.x] Remove thousands separator in time records (#876) Apr 20, 2020
@driesvints
Copy link
Member

This won't work if your locale is set to something like fr_FR for example.

@driesvints
Copy link
Member

@janolivermr I misunderstood what was going on, thanks for the pr!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants