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

Unrecognized time zone identifier: "Europe/Kyiv" #343

Open
cawa-93 opened this issue Sep 19, 2022 · 6 comments
Open

Unrecognized time zone identifier: "Europe/Kyiv" #343

cawa-93 opened this issue Sep 19, 2022 · 6 comments
Labels

Comments

@cawa-93
Copy link

cawa-93 commented Sep 19, 2022

🐞 Describe the bug

On live demo I got this error:

unrecognized time zone identifier: "Europe/Kyiv"

πŸ“š To Reproduce

  1. Open demo
  2. Try to Sign in

πŸ’‘ Expected behavior

Just normaly work

πŸ–ΌοΈ Screenshots

зобраТСння

βš™οΈ Environment
Live demo from README πŸ€·β€β™‚οΈ
Browser: Firefox Developer edition v105.0b9

πŸ“‹ Additional context

In my opinion it may be related to recently renaming timezone Europe/Kiev to Europe/Kyiv

https://mm.icann.org/pipermail/tz-announce/2022-August/000071.html

@cawa-93 cawa-93 added the bug label Sep 19, 2022
@electerious
Copy link
Owner

Thanks for letting me know!

In my opinion it may be related to recently renaming timezone Europe/Kiev to Europe/Kyiv

I think that's the problem. I'm using date-fns-tz to work with timezones. A new version of the package might already support Europe/Kiev. A PR is welcome!

@cawa-93
Copy link
Author

cawa-93 commented Sep 20, 2022

Regarding to marnusw/date-fns-tz#120 (comment) it may be caused by mismatched nodejs timezones and browser timezones.

In firefox v105.0b9:

> Intl.DateTimeFormat().resolvedOptions().timeZone 
< 'Europe/Kyiv'

In edge v105.0.1343.42:

> Intl.DateTimeFormat().resolvedOptions().timeZone 
< 'Europe/Kiev'

But in node v18.8.0

> new Intl.DateTimeFormat('en-US', {timeZone: 'Europe/Kyiv'}).format(Date.now())
Uncaught RangeError: Invalid time zone specified: Europe/Kyiv
    at new DateTimeFormat (<anonymous>)
> new Intl.DateTimeFormat('en-US', {timeZone: 'Europe/Kiev'}).format(Date.now())
'9/20/2022'

Node already updated
nodejs/node#44333

@cawa-93
Copy link
Author

cawa-93 commented Sep 20, 2022

Confirm. In node 18.9.0 both timezone works.

> new Intl.DateTimeFormat('en-US', {timeZone: 'Europe/Kyiv'}).format(Date.now())
'9/20/2022'
> new Intl.DateTimeFormat('en-US', {timeZone: 'Europe/Kiev'}).format(Date.now())
'9/20/2022'

Therefore, I assume that updating the node on the demo server should solve this problem

@electerious
Copy link
Owner

I've updated date-fns-tz with Ackee 3.4.2. Can you check if the bug has been fixed?

@cawa-93
Copy link
Author

cawa-93 commented Dec 17, 2022

Yeap. Still not working in firefox 109.0b3 on windows 10

@mks-h
Copy link

mks-h commented Sep 19, 2023

This is still an issue

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

No branches or pull requests

3 participants