Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[intl-datetimeformat] 'second' option is ignored when 'timeZoneName' is set #2236

Closed
mrijke opened this issue Oct 22, 2020 · 1 comment
Closed

Comments

@mrijke
Copy link
Contributor

mrijke commented Oct 22, 2020

Which package?

@formatjs/intl-datetimeformat

Is this a BUG REPORT or FEATURE REQUEST? (choose one)

Bug report

Expected behavior

When the second option is set to undefined, I expect to see no seconds in the formatted time.

Current behavior

Seconds are always rendered if timeZoneName is not undefined

Step to reproduce for BUG REPORT

https://codesandbox.io/s/bitter-dream-2l3br?file=/src/App.tsx

Your Environment

@formatjs/intl-datetimeformat version 2.6.10
Chrome 86

@longlho
Copy link
Member

longlho commented Oct 23, 2020

Thanks for reporting! We'll take a look asap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants