Skip to content

Intl.DateTimeFormat(...).resolvedOptions() always return 'short' in timeZoneName #26790

@vitvad

Description

@vitvad

Version: tested for 9.21 and 11.60
Platform: OSX Mojave x86_64

tested with ICU v: '63.1', and without.

quick step to reproduce:

var region1 = new Intl.DateTimeFormat('en-US', { timeZoneName: 'long' });
console.log(`'${region1.resolvedOptions().timeZoneName}' should be equal to 'long'`);

will always return 'short'.

Chrome v72.0 - show's correct value
you can check it quickly in sandbox at MDN
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat

Metadata

Metadata

Assignees

Labels

i18n-apiIssues and PRs related to the i18n implementation.v8 engineIssues and PRs related to the V8 dependency.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions