2022-09-07 11:08:19 +02:00
|
|
|
// 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.zoneddatetime.prototype.constructor
|
|
|
|
description: Time zone names are case insensitive
|
|
|
|
features: [Temporal]
|
|
|
|
---*/
|
|
|
|
|
2022-09-08 14:57:52 +02:00
|
|
|
const timeZone = 'uTc';
|
2022-09-07 11:08:19 +02:00
|
|
|
const result = new Temporal.ZonedDateTime(0n, timeZone);
|
2023-02-17 22:05:30 +01:00
|
|
|
assert.sameValue(result.timeZoneId, 'UTC', `Time zone created from string "${timeZone}"`);
|