treehouse : what would you like to learn today?
Web Design Web Development iOS Development

correct time shown for signup

  • i have a form that lets people sign up for web conferences at certain times. Does anyone know of a way to get someone's time zone from their browser and show the time in the form as the right time for them?
  • I don't think it's trivially easy. Most signups that require a correct local time solicit the user for their timezone. It should be possible though... as there are certainly auto-detect-location websites out there. If you had location, you could cross reference it with a location-to-zip-code kind of thing and then a zip-code-to-time-zone kind of thing. Makes me tired thinking about it though, you might wanna just add a field and ask.