Fix DST sensitivity in Date/parse/without-utc-offset.js. (#2523)

This commit is contained in:
Ross Kirsling 2020-03-10 18:07:44 -07:00 committed by GitHub
parent 7631789388
commit 800870cbb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);