produces a crash with this error: com.facebook.hermes.intl.JSRangeErrorException: Invalid timezone name!
We are using the @formatjs polyfill on iOS which supports both IANA timezones while Hermes' Intl only looks to be supporting the old Europe/Kiev timezone.
Bug Description
It appears that the
Europe/Kiev
timezone has been renamed toEurope/Kyiv
as of March 10, 2022 (per the IANA Database changelog).Currently, the following code:
produces a crash with this error:
com.facebook.hermes.intl.JSRangeErrorException: Invalid timezone name!
We are using the @formatjs polyfill on iOS which supports both IANA timezones while Hermes' Intl only looks to be supporting the old
Europe/Kiev
timezone.Hermes git revision (if applicable): React Native version: 0.72.8 Platform: Android OS:
Steps To Reproduce
Attempt to format using the
Europe/Kyiv
timezone on Android using Hermes' Intl library.The Expected Behavior
It should correctly format the date rather than crash.