Closed
Bug 1025168
Opened 10 years ago
Closed 3 years ago
Autofill time zone if you've set your geographic location
Categories
(Participation Infrastructure :: Phonebook, defect)
Participation Infrastructure
Phonebook
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: athulsuresh, Unassigned)
References
Details
(Whiteboard: [Triage 2015-04-17] [iam-RFE])
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!
Comment 1•10 years ago
|
||
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).
Reporter | ||
Comment 2•10 years ago
|
||
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!
Comment 3•10 years ago
|
||
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
Comment 4•10 years ago
|
||
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!)
Updated•10 years ago
|
Version: 2014-06.6 → other
Updated•10 years ago
|
Blocks: Mozillians.next
Whiteboard: [Triage 2015-04-17]
Comment 5•3 years ago
|
||
This is an RFE specific to mozillians, which is decom'ed.
If this is found to pertain to people.mozilla.org then please open a new issue.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INVALID
Whiteboard: [Triage 2015-04-17] → [Triage 2015-04-17] [iam-RFE]
You need to log in
before you can comment on or make changes to this bug.
Description
•