allow for negative years in dates

This commit is contained in:
Bart van den Eijnden
2012-04-17 14:23:56 +02:00
parent b683c9bae1
commit 90a8ac9c71
2 changed files with 7 additions and 2 deletions

View File

@@ -35,7 +35,7 @@
function test_Date_parse(t) {
t.plan(114);
t.plan(121);
var cases = {
"2000": {
@@ -139,6 +139,11 @@
year: 2000,
month: 3,
date: 15
},
"-0501-03-01T00:00:00.000Z": {
year: -501,
month: 2,
date: 1
}
};