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
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
Follow this tutorial:
Abhishek shukla wrote:
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?
If you store the timezone as part of the user model, displaying the appropriate local time would just be: @user.tz.now
HTH,