mirror of https://github.com/tc39/test262.git
Interpret date-only forms as UTC
- Don't interpret date-only as local time
This commit is contained in:
parent
1da4c78051
commit
77297535af
|
@ -10,7 +10,7 @@ description: >
|
|||
---*/
|
||||
|
||||
var result = false;
|
||||
var expectedDateTimeStr = new Date(1970, 0, 1, 0, 0, 0, 0).toISOString();
|
||||
var expectedDateTimeStr = "1970-01-01T00:00:00.000Z";
|
||||
var dateObj = new Date("1970");
|
||||
var dateStr = dateObj.toISOString();
|
||||
result = dateStr === expectedDateTimeStr;
|
||||
|
|
Loading…
Reference in New Issue