blob: c4805d7be72eac7397620b49217aaa1af847cb52 [file] [edit]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
// UTC-equivalent host time zone must normalize to "UTC", not "Etc/UTC" or
// the literal alias name. ECMA-402 mandates "UTC" as the primary identifier
// for UTC-equivalent zones.
shouldBe(Intl.DateTimeFormat().resolvedOptions().timeZone, `UTC`);
shouldBe(Temporal.Now.timeZoneId(), `UTC`);