Re: [Rails] set Time.zone to current user time zone

2010-01-11 Thread Colin Law
2010/1/10 Johnny Shi johnny.t@gmail.com: 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

[Rails] set Time.zone to current user time zone

2010-01-10 Thread Johnny Shi
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 -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send

Re: [Rails] set Time.zone to current user time zone

2010-01-10 Thread Rodrigo Dellacqua
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 Dellacqua On Sun, Jan 10, 2010 at 8:31 PM, Johnny Shi johnny.t@gmail.com wrote: I want to set the Time.zone to the user's current time zone, I don't want to