Skip to content
Browse files

fix for dates in first century

  • Loading branch information...
1 parent af878ca commit f1976278f6c96cc4656662e7f975a576b0e2f05b @unscriptable unscriptable committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 date.js
View
2 date.js
@@ -76,7 +76,7 @@ define(['./lib/_base'], function (base) {
// subtract the 400 years (as milliseconds) afterwards, we can avoid
// this problem. (learned of this trick from kriskowal/es5-shim.)
if (y >= 0 && y < 100) {
- y += 400;
+ y = +y + 400; // convert to number
adjust = -126227808e5; // 400 years
}

0 comments on commit f197627

Please sign in to comment.
Something went wrong with that request. Please try again.