summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/Date/parse-time-zone.js
blob: c239822b0438d3684310e486870b0923dc614ffb (plain)
1
2
3
4
5
6
7
8
9
10
// |reftest| skip-if(xulRuntime.OS=="WINNT") -- Windows doesn't accept IANA names for the TZ env variable

// bug 1676708
inTimeZone("Europe/London", () => {
  let dt = new Date("Wed Nov 11 2020 19:18:50 GMT+0010");
  assertEq(dt.getTime(), new Date(2020, Month.November, 11, 19, 08, 50).getTime());
});

if (typeof reportCompare === "function")
  reportCompare(true, true);