Time Problem

Hi,
In my application I have to correct the time stamp on event
discussion posts. Perhaps they are not observing DST? In any case, they
are slow by one hour.
how to do this ? I have following type of code and I have been using
rails 1.3:-

<%= frmt_note_date(message.created_on) %> at
<%=
display_formated_time(user_timezone_dateTime(message.created_on,‘fmt_in_dateTime’).split(’
at ').last)
%>

above code shows me:- 9/08/2008 at 4:32 AM

On Wed, Sep 10, 2008 at 5:41 PM, Sunny B.
[email protected] wrote:

In my application I have to correct the time stamp on event
discussion posts. Perhaps they are not observing DST? In any case, they
are slow by one hour.

If you just want to add one hour to the time regardless of timezone,
the simplest thing that would work is:

$ ./script/console
Loading development environment.

Time.now
=> Thu Sep 11 13:45:29 +1000 2008
_ + 1.hour
=> Thu Sep 11 14:45:29 +1000 2008

Rails, RSpec and Life blog…