Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

countries-and-timezones

Package Overview
Dependencies
Maintainers
2
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

countries-and-timezones - npm Package Versions

124

2.3.0

Diff

Changelog

Source

[2.3.0] - 2020-08-25

Added

  • Support for <script/> tag.

Changed

  • Added 1 new timezone ("America/Nuuk").
  • Updated with 2020a IANA Timezones database.
manuelmhtr
published 2.2.0 •

Changelog

Source

[2.2.0] - 2020-04-18

Added

  • Updated 18 existing timezones.
  • Added 89 new timezones.
  • Complying with 2019c IANA Timezones database.
manuelmhtr
published 2.1.1 •

manuelmhtr
published 2.1.0 •

Changelog

Source

[2.1.0] - 2020-03-31

Added

  • #15 Babel and ES5 support (by Steven Vachon)
  • #16 CI Action (by Steven Vachon)
manuelmhtr
published 2.0.5 •

manuelmhtr
published 2.0.4 •

manuelmhtr
published 2.0.3 •

manuelmhtr
published 2.0.2 •

manuelmhtr
published 2.0.1 •

manuelmhtr
published 2.0.0 •

Changelog

Source

[2.0.0] - 2019-10-10

Added

  • getTimezone method.
  • getCountry method.
  • 167 new alias timezones.
  • Property dstOffset in timezones.
  • Property dstOffsetStr in timezones.

Changed

  • Added all timezone aliases (before only primary timezones where supported). This increasead the support from 338 timezones to 505.
  • Minified data.json as possible. Reduced size 72%, from 88.1 KB to 24.9 KB.
  • Replaced countries (array) timezones property for country (string). Now all alias timezones are included, then each timezone has only one country assigned.
  • Renamed 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.

Removed

  • .raw property. Instead use getAllCountries and getAllTimezones methods.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc