ernysans / laraworld

Countries, Languages and Time Zones Package for Laravel and Lumen 5.*
http://erny.co
MIT License
17 stars 11 forks source link

Question: Data source #8

Open jonagoldman opened 6 years ago

jonagoldman commented 6 years ago

I just want to know the source of the data in the json files in case I want to update with latest fixes (if there are any) or in general just to know. Thanks.

ernysans commented 6 years ago

@jonagoldman I'm sorry but I don't remember. I just know that at that time I had to retrieve the data from multiple sources. It has been some time sense the data was double checked. Please let me know if you find inconsistencies and if you can send me a PR and I will review it

jonagoldman commented 6 years ago

I noticed in this list of UTC offsets a few not available in the package, UTC+12:45, UTC+13:00, UTC+14:00, etc.. so I'am guessing some things might be outdated.

carlost89 commented 6 years ago

Hi, Is there a way we can manually update the json files outside from vendors folder?

ernysans commented 6 years ago

@carlost89 Not really. Yon can send a PR If you find the information to be outdated

jonagoldman commented 6 years ago

I used https://timezonedb.com to retrieve timezones and https://restcountries.eu to get countries and languages as a JSON. Then wrote a simple script to merge everything together and insert everything into the database.