Open oscar-b opened 2 weeks ago
ESNext
Intl.Locale.prototype.getTimeZones() doesn't exist in the Intl library definitions. It is supported in all browsers except Firefox.
Intl.Locale.prototype.getTimeZones()
Intl
const loc = new Intl.Locale("en-US"); const localeTimeZones = loc.getTimeZones();
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTimeZones
https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getTimeZones
⚙ Compilation target
ESNext
⚙ Library
ESNext
Missing / Incorrect Definition
Intl.Locale.prototype.getTimeZones()
doesn't exist in theIntl
library definitions. It is supported in all browsers except Firefox.Sample Code
Documentation Link
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTimeZones
https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getTimeZones