Permalink
Browse files

shouldn't have used arrIndexOf for string

  • Loading branch information...
longlho committed Feb 15, 2013
1 parent 53b2cd2 commit 60eb502413337e9e19da6cfc0c60bd7129213cb1
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/date.js
View
@@ -602,7 +602,7 @@
}
function getBasicOffset(time) {
var off = parseTimeString(time)
- , adj = _arrIndexOf.call(time, '-') === 0 ? -1 : 1;
+ , adj = time.indexOf('-') === 0 ? -1 : 1;
off = adj * (((off[1] * 60 + off[2]) * 60 + off[3]) * 1000);
return off/60/1000;
}

0 comments on commit 60eb502

Please sign in to comment.