On Tue, Oct 14, 2008 at 12:24 AM, Abhishek shukla <[EMAIL PROTECTED]> 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 ------------------------ [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

