# Time Problem

**URL:** <https://www.ruby-forum.com/t/time-problem/148193>\
**Category:** Rails I18n\
**Created:** [September 10, 2008, 9:44am UTC](https://www.ruby-forum.com/t/time-problem/148193 "2008-09-10T09:44:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunfish](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/96bed5/32.png) [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Post date:** [September 10, 2008, 9:44am UTC](https://www.ruby-forum.com/t/time-problem/148193/1 "2008-09-10T09:44:15Z")

</div>

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

Please I need a solution for this problem?
