wiqar / jquery-timepicker

Automatically exported from code.google.com/p/jquery-timepicker
0 stars 0 forks source link

leading 0 bug when parsing initial input tag #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
There is an issue with parseInt when there are leading zeros and the
"radix" is not specified. So parseInt("09") give the number 0. This is
fixed by using parseInt("09", 10). This effects the ability of this plugin
to correctly parse existing input fields into corresponding select boxes.

http://www.breakingpar.com/bkp/home.nsf/0/87256B280015193F87256C85006A6604

Original issue reported on code.google.com by tomsalfi...@googlemail.com on 26 Jun 2008 at 4:25

GoogleCodeExporter commented 8 years ago
This also effects the ability of the plugin to properly choose the selected 
hour. I
modified my code so that it changed all instances of parseInt(x) to parseInt(x, 
10).
I have attached a diff which fixes the bug.

Original comment by wlp1...@gmail.com on 8 Oct 2009 at 2:06

Attachments:

GoogleCodeExporter commented 8 years ago
ghghgh

Original comment by daniela....@gmail.com on 3 Mar 2010 at 2:33