mirror of https://github.com/tc39/test262.git
Fix DST sensitivity in Date/parse/without-utc-offset.js. (#2523)
This commit is contained in:
parent
7631789388
commit
800870cbb8
|
@ -11,7 +11,7 @@ info: |
|
|||
as a UTC time and date-time forms are interpreted as a local time.
|
||||
---*/
|
||||
|
||||
const timezoneOffsetMS = new Date().getTimezoneOffset() * 60000;
|
||||
const timezoneOffsetMS = new Date(0).getTimezoneOffset() * 60000;
|
||||
|
||||
assert.sameValue(Date.parse('1970-01-01T00:00:00'), timezoneOffsetMS);
|
||||
assert.sameValue(Date.parse('1970-01-01'), 0);
|
||||
|
|
Loading…
Reference in New Issue