Set Time.zone to current user time zone

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?

Thanks

hmm… doesn’t that come in the Request?

Or maybe current_user.time_zone?

Just a couple thoughts, I don’t really know.

[]'s
Rodrigo D.

Correct me if i am wrong, but current_user.time_zone will require you
store the time_zone under user profile.

2010/1/10 Johnny S. [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

Colin