Time Zone

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:

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

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 E. <

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 S. ------------------------ [email protected]