Rails time zone selector: intelligently selecting a default

Posted by Tim Sullivan on Stack Overflow See other posts from Stack Overflow or by Tim Sullivan
Published on 2009-11-08T14:58:23Z Indexed on 2010/04/24 23:13 UTC
Read the original article Hit count: 263

Filed under:

When signing up for an account on one of my apps, we need to store the time zone is in. We're using the time zone selector, which is fine, but I'd like to set the default value to something that it likely the user's current time zone.

Is there an easy way, either on the server or using JavaScript, to set the time zone selector to the time zone the user is currently in?

© Stack Overflow or respective owner

Related posts about ruby-on-rails