test262/test/built-ins/Temporal/Now/zonedDateTimeISO/timezone-case-insensitive.js
2022-09-13 11:32:16 -07:00

13 lines
424 B
JavaScript

// Copyright (C) 2022 Igalia, S.L. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-temporal.now.zoneddatetimeiso
description: Time zone names are case insensitive
features: [Temporal]
---*/
const timeZone = 'UtC';
const result = Temporal.Now.zonedDateTimeISO(timeZone);
assert.sameValue(result.timeZone.id, 'UTC', `Time zone created from string "${timeZone}"`);