Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

i18n-apiIssues and PRs related to Node.js internationalization support.v8 engineIssues and PRs related to the V8 dependency.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions