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/Belgrade'}) ); | |
adamk
2015/12/10 17:33:13
Nit: 80 char limit (misspell shorter :) )
Dan Ehrenberg
2015/12/10 17:55:36
Done
| |
OLD | NEW |