Hello friends, My question is like if the user select the time zone for his country the application timezone should display the selected time zone. so for implement this what i should do? regards abhi --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Follow this tutorial: http://mad.ly/2008/04/09/rails-21-time-zone-support-an-overview/ Abhishek shukla wrote:> Hello friends, > My question is like if the user select the time zone for his country the > application timezone should display the selected time zone. > > so for implement this what i should do? > > regards > abhi-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi nathan, Thanks for your response, Still i am very confuse my requirement is like a user save there timezone, then whenever he logs in he should see the time as per wat he set in timezone currently it displaying my system timezone. So what excatly i''ll need to do? Do i need to create a method in which i''ll need to set the timezone? On Tue, Oct 14, 2008 at 9:07 AM, Nathan Esquenazi < rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Follow this tutorial: > > http://mad.ly/2008/04/09/rails-21-time-zone-support-an-overview/ > > Abhishek shukla wrote: > > Hello friends, > > My question is like if the user select the time zone for his country the > > application timezone should display the selected time zone. > > > > so for implement this what i should do? > > > > regards > > abhi > > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Tue, Oct 14, 2008 at 12:24 AM, Abhishek shukla <betterabhi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Still i am very confuse my requirement is like a user save there timezone, > then whenever he logs in he should see the time as per wat he set in > timezone currently it displaying my system timezone. > > So what excatly i''ll need to do? Do i need to create a method in which i''ll > need to set the timezone?If you store the timezone as part of the user model, displaying the appropriate local time would just be: @user.tz.now HTH, -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---