Invalid timeZoneName on version 3.108.0 (which can be fixed downgrading to previous Polyfill version)
See original GitHub issueWe use Polyfill on production website without specifying the version (I know we should not have, lesson learned!) loaded from cdn.polyfill.io
We use sentry & trackJS to track errors on our websites and noticed a tremendous amount of errors on TrackJS with error name:
Invalid timeZoneName
This error is originating from various browser version including:
- Firefox 72 / 78 / …
- Safari 11 / 13 / 14.0 …
We used Browserstack to double check and we indeed had error in console log.
We finally changed the Polyfill version to the previous available on the CDN (v3.101.0) and all the errors vanished and everything is working fine again.
I don’t know if this comes from the 3.108.0 version (or from another version between 3.101 and 3.108) however, I see that some browser seems to be excluded from Intl.DateTime stuff in the latest 3.108.0 compared to 3.107.1 ( commit https://github.com/Financial-Times/polyfill-library/commit/f570a97be095e5a90b7c93859a146405262dce35#diff-dad587b9f55bc3cd01f001ba0e9009ab2c3debcd8f246b4120c4de7296c540e1 by @romainmenke commited by @JakeChampion ) but
NB: By the way anyone knows why https://polyfill.io/v3/polyfill.js?version=3.101.0 gives version 3.101 but https://polyfill.io/v3/polyfill.js?version=3.102.0 / https://polyfill.io/v3/polyfill.js?version=3.103.0 / https://polyfill.io/v3/polyfill.js?version=3.104.0 / till 3.107.1 … all give version 3.108.0 ?
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (2 by maintainers)
Top GitHub Comments
@Nickinthebox The builder has been updated :
I have tried to load the last version with feature
Intl.DateTimeFormat.~timeZone.golden
and I don’t have the issue anymore 👍You may add the feature on https://polyfill.io/v3/url-builder/ (if someone has the same issue, he might tried to fix by adding any feature with “timezone” in its name 😉