Skip to content

parseInterval missing radix parameter in parseInt calls #113

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

Closed
dark-panda opened this issue Mar 22, 2012 · 0 comments
Closed

parseInterval missing radix parameter in parseInt calls #113

dark-panda opened this issue Mar 22, 2012 · 0 comments

Comments

@dark-panda
Copy link

The parseInterval function is missing a radix parameter in all of its parseInt calls. This may cause the hours, minutes and seconds fields to be incorrectly parsed when they have a leading '0' and are interpreted as octal values. For instance, having "08" or "09" as a value will cause the field to be interpreted by parseInt as undefined.

@brianc brianc closed this as completed in be5308a Mar 27, 2012
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

No branches or pull requests

2 participants