Skip to content

Commit

Permalink
fix for dates in first century
Browse files Browse the repository at this point in the history
  • Loading branch information
unscriptable committed Aug 9, 2012
1 parent af878ca commit f197627
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion date.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit f197627

Please sign in to comment.