Skip to content

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

Closed

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

  1. sam-github commented on Mar 20, 2019

    @sam-github
    Contributor

    @nodejs/intl

  2. TimothyGu commented on Mar 20, 2019

    @TimothyGu
    Member

    Could you try installing full-icu as documented here?

  3. added
    question
    i18n-api
    on Mar 20, 2019
  4. srl295 commented on Mar 20, 2019

    @srl295
    Member

    ^ not repro in all versions, may be something that was fixed in v8

  5. self-assigned this
    on Mar 20, 2019
  6. added
    assert
    on Mar 20, 2019
  7. srl295 commented on Mar 20, 2019

    @srl295
    Member

    working fine in 42dbaed

  8. srl295 commented on Mar 20, 2019

    @srl295
    Member

    was fixed in 9b4bf7d #23423 "update V8 to 7.1.302.28"

  9. added
    v8 engine
    and removed
    question
    assert
    on Mar 20, 2019
  10. vitvad commented on Mar 20, 2019

    @vitvad
    Author

    @srl295 Thank you for quick response.
    I just checked node v11.12.0 and it has v8 version v8: '7.0.276.38-node.18',
    could you please clarify when node build with new v8 will be available ? As I see in ticket above, original plan was - Dec 2018.
    As I understand it appear in node v12 around 2019-04-23 ?

  11. srl295 commented on Mar 20, 2019

    @srl295
    Member

    @vitvad Welcome. I'm not quite sure how to answer your question. You could ask on PR #23423 ?

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

Metadata

Metadata

Assignees

Labels

i18n-apiv8 engine

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions