Forum: Ruby Time slow by one hour.

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3548d30217e9921c410db19ce8ce38d0?d=identicon&s=25 Sunny Bogawat (sunny_bogawat)
on 2008-09-10 09:42
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
This topic is locked and can not be replied to.