countries-and-timezones
Advanced tools
Changelog
[2.3.0] - 2020-08-25
<script/>
tag.Changelog
[2.2.0] - 2020-04-18
Changelog
[2.1.0] - 2020-03-31
Changelog
[2.0.0] - 2019-10-10
getTimezone
method.getCountry
method.dstOffset
in timezones.dstOffsetStr
in timezones.data.json
as possible. Reduced size 72%, from 88.1 KB to 24.9 KB.countries
(array) timezones property for country
(string). Now all alias timezones are included, then each timezone has only one country assigned.offsetStr
to utcOffsetStr
, to be more specific whether the offset is for UTC or DST.getCountriesForTimezone
method was renamed to getCountryForTimezone
since now timezones have only 1 country. Only return a country object, instead of a countries array..raw
property. Instead use getAllCountries
and getAllTimezones
methods.