You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(data): keep zones apart for a year after they change their rules (#……331)
Regina, Whitehorse and Atikokan get their own entries back, so browsers with older tz data never show a wrong offset for them.
feat: getCountryCode returns the country of any time zone name (#329)
getCountryCode(Intl.DateTimeFormat().resolvedOptions().timeZone) gives the visitor's country without an IP lookup, in 4 kB. The README compares tzdb with countries-and-timezones, sizes included.
feat: read time zones from IANA and restore npm publishing (#326)
Offsets, abbreviations and aliases now come from the IANA tz database, compiled daily. getTimeZones() adds currentAbbreviation, locale, includeGmtOffsets and tzdbVersion, and works without Intl. Releases use npm trusted publishing and Renovate automerges dependency updates.