2010/1/10 Johnny Shi <[email protected]>:
> I want to set the Time.zone to the user's current time zone, I don't
> want to store the timezone in user profile like many other solutions.
> How to do that?

I believe this has been discussed a number of times and my
understanding is that the only way to achieve it is via javascript and
pass the data back to to the server (or better just use it in the
browser if possible).  Google will provide various suggestions such as
http://www.onlineaspect.com/2007/06/08/auto-detect-a-time-zone-with-javascript

Colin
-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.


Reply via email to