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 :- <%= 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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Shouldn''t it be created_at? There''s nice time_zone support in Rails 2.. is it 2.1? Not too sure. What''s your version? On Mon, Sep 8, 2008 at 5:53 PM, Sunny Bogawat <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > 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 :- > > <%= 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 > -- > Posted via http://www.ruby-forum.com/. > > > >-- Ramon Tayag --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Can you give me brief solution for this? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---