Permalink
Browse files

It's better to use parseFloat here as this number will only ever be a…

… real number. ParseInt was also breaking because you didn't specify a radix.
  • Loading branch information...
danjordan committed Sep 26, 2011
1 parent d7a7b06 commit d5594c4a871db34fe437b10a15aa754ba8d3166c
Showing with 1 addition and 1 deletion.
  1. +1 −1 iPhone/DatePicker/DatePicker.js
@@ -32,7 +32,7 @@ if (typeof PhoneGap !== "undefined") {
}
DatePicker.prototype._dateSelected = function(date) {
- var d = new Date(parseInt(date)*1000);
+ var d = new Date(parseFloat(date)*1000);
if (this._callback)
this._callback(d);
}

0 comments on commit d5594c4

Please sign in to comment.