Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix for dates in first century

  • Loading branch information...
commit f1976278f6c96cc4656662e7f975a576b0e2f05b 1 parent af878ca
@unscriptable unscriptable authored
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
}
Please sign in to comment.
Something went wrong with that request. Please try again.