mirror of
https://github.com/tc39/test262.git
synced 2025-07-25 23:14:47 +02:00
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.
|
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-01T00:00:00'), timezoneOffsetMS);
|
||||||
assert.sameValue(Date.parse('1970-01-01'), 0);
|
assert.sameValue(Date.parse('1970-01-01'), 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user