add back UTC timezone

This commit is contained in:
Frank Yung-Fong Tang 2021-10-05 21:45:56 -07:00 committed by Rick Waldron
parent 2808c07dc5
commit f801aa9468
1 changed files with 8 additions and 0 deletions

View File

@ -19,6 +19,14 @@ assert.throws(RangeError, () => Temporal.Now.plainDateTimeISO({ timeZone }), "ba
"2021-08-19T1730-07:00",
"2021-08-19T17:30-0700",
"2021-08-19T1730-0700",
"2021-08-19T17:30[UTC]",
"2021-08-19T1730[UTC]",
"2021-08-19T17:30Z[UTC]",
"2021-08-19T1730Z[UTC]",
"2021-08-19T17:30-07:00[UTC]",
"2021-08-19T1730-07:00[UTC]",
"2021-08-19T17:30-0700[UTC]",
"2021-08-19T1730-0700[UTC]",
].forEach((timeZone) => {
Temporal.Now.plainDateTimeISO(timeZone);
Temporal.Now.plainDateTimeISO({ timeZone });