Skip to content

Commit fd9e726

Browse files
committed
the day argument to Date.UTC starts from 1
1 parent 5ffc454 commit fd9e726

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/js/js2py/datetime2.simple.failing

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const eqUnixTime = python.eval('eqUnixTime');
6060

6161
const now = new Date();
6262
const randomDate = new Date(Date.UTC(1973, 8, 16, 23, 2, 30));
63-
const startOfEpoch = new Date(Date.UTC(1970, 0, 0, 0, 0, 0));
63+
const startOfEpoch = new Date(Date.UTC(1970, 0, 1, 0, 0, 0));
6464

6565
test(eq(now, now), 'same dates (now) are equal');
6666
test(eq(startOfEpoch, startOfEpoch), 'same dates (0) are equal');

0 commit comments

Comments
 (0)