Skip to content

Fix processing REQUEST_TIME_FLOAT value#67

Merged
glensc merged 1 commit intomainfrom
i18n-fix
Apr 5, 2022
Merged

Fix processing REQUEST_TIME_FLOAT value#67
glensc merged 1 commit intomainfrom
i18n-fix

Conversation

@glensc
Copy link
Copy Markdown
Contributor

@glensc glensc commented Apr 5, 2022

Avoid using float when parsing REQUEST_TIME_FLOAT,
as it may be formatted with a comma, depending on the locale.

Otherwise, get this notice when passing 1649168503,0729 to date:

PHP Notice: A non well formed numeric value encountered

@glensc glensc self-assigned this Apr 5, 2022
Avoid using float when parsing REQUEST_TIME_FLOAT,
as it may be formatted with a comma, depending on the locale.

Otherwise, get this notice when passing 1649168503,0729 to date:
> PHP Notice:  A non well formed numeric value encountered
@glensc glensc merged commit 766a93d into main Apr 5, 2022
@glensc glensc deleted the i18n-fix branch April 5, 2022 14:27
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.

1 participant