-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
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
update toMs function. fix #4894 #8495
Conversation
so it can parse floating numbers with commas instead of dots
hmm, this bug was fixed in Chromium a while ago (https://bugs.chromium.org/p/chromium/issues/detail?id=720222). What is the current version used by Electron? |
Electron 2.0.5 (current latest) uses Chromium 61.0.3163.100, the bug seems to be fixed on version 68.0.3409.0 I'll add the comment |
oh lol, so it wasn't fixed as long ago as I thought it was |
comment fixed (: |
I meant in the code 😆 |
lol, sorry! |
That would be awesome if this was merged. I'm currently having this issues with Electron on Mac too. (However, in Windows works fine) |
Old versions of Chromium (below 61.0.3163.100) formats floating pointer numbers in a locale-dependent way, using a comma instead of a dot.
This PR makes toMs function parse it correctly, preventing unexpected behaviors.
What kind of change does this PR introduce? (check at least one)
Does this PR introduce a breaking change? (check one)
If yes, please describe the impact and migration path for existing applications:
The PR fulfills these requirements:
dev
branch for v2.x (or to a previous version branch), not themaster
branchfix #xxx[,#xxx]
, where "xxx" is the issue number)If adding a new feature, the PR's description includes:
Other information: