OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // Normalizes Kat{h,}mandu (chromium:487322) |
| 6 df = new Intl.DateTimeFormat('en-US', {'timeZone': 'Asia/Katmandu'}) |
| 7 assertEquals('Asia/Katmandu', df.resolvedOptions().timeZone); |
| 8 |
| 9 df = new Intl.DateTimeFormat('en-US', {'timeZone': 'Asia/Kathmandu'}) |
| 10 assertEquals('Asia/Katmandu', df.resolvedOptions().timeZone); |
| 11 |
| 12 // Throws for unsupported time zones. |
| 13 assertThrows(() => Intl.DateTimeFormat(undefined, {timeZone: 'Aurope/Paris'})); |
OLD | NEW |