User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36 Steps to reproduce: Register / edit the profile Actual results: timezone doesnt have country name. currently its like "asia/cityname" or "africa/cityname" etc Expected results: change the current style to continent/country/region Would be great to see Auto-selection of timezone according to Selected Region/country during profile creation!
There's a few web services that do this: http://www.earthtools.org/webservices.htm#timezone https://developers.google.com/maps/documentation/timezone/ http://api.geonames.org/timezoneJSON?lat=47.01&lng=10.2&username=demo There's also "the tz database" which ruby developers rely on: http://www.twinsun.com/tz/tz-link.htm relevant ruby gem: https://github.com/panthomakos/timezone I haven't found anything from Mapbox (yet).
Why can't we logically select the timezone using the country and region a user type those respective fields above? Most of mozillians will type their correct location in the city and country fields. We could automatically select the timezone from those fields by predicting right? the ruby project you mentioned uses geonames api which also have user limits. (That's what I see there). I guess its better to have a in-house timezone fetching system for mozilla. Just my opinions!
I agree that autosetting time zone would be handy. Knowing the country and region doesn't tell you what time zone you're in. You need a database to associate those things. We're already calling out to the mapbox API for locations, doing a second API for timezone autosetting is no big deal. I think it should be done in JS, which leaves you the ability to modify the autofill before submission if you wish. No need for any back-end changes here.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Timezone sorting should have country too + autoselection → Autofill time zone if you've set your geographic location
There's an awful lot of data here. https://github.com/panthomakos/timezone/tree/master/data 5.8Mb uncompressed, 913kb compressed (probably because the formatting repeats itself so much!)
You need to log in before you can comment on or make changes to this bug.