Replace the timezones file with a package
While investigating a possible solution to #231 (closed), I stumbled upon js\src\utils\timezones.js
, which looks fine for accessing time zones and country names, but I think we can do better. This file's data was never updated since the file was first committed, and that means it doesn't reflect the current state of time zones across the world. There have been changes since 4/2019 when the file was generated, a nice list can be found at timeanddate.com.
A good approach in my opinion would be to use a package like @vvo/tzdb
, which is updated fairly often and should provide us all the data we need.
As for the country names and iso-codes, there's a package called i18n-iso-countries
that is also updated (although countries don't just pop into and out of existence that regularly.)
I think adding both of these packages would make the code of this file more maintainable and for sure more up-to-date.