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

Locale-independent functionality of PropelDateTime::createHighPrecision #1242

Merged
merged 2 commits into from Jul 26, 2016

Conversation

Musiksammler
Copy link
Contributor

It came to my attention that PropelDateTime::createHighPrecision can return "false" when the numeric format for floats is changed by setting specific locales. For example in the locale "de_DE" floats will be formatted with a "," (comma) as decimal pointer. This will result in a "false" from DateTime::createFromFormat.

I submitted a patch, just replacing a "," with a "." in the value of "microtime(true)".

@marcj marcj merged commit 8a25ecd into propelorm:master Jul 26, 2016
@marcj
Copy link
Member

marcj commented Jul 26, 2016

Good catch, thanks!

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.

None yet

3 participants