I've found the place where my date/time/datetime is being formatted (I think); however, changing the format isn't having any effect on ActiveRecord::Base.to_xml()
activesupport-2.0.2/lib/active_support/core_ext/hash/conversions.rb line 48 I've tried changing at runtime via the method listed in previous message, and I've also tried just modifying conversions.rb as a test. Neither change had any effect on to_xml(). to_xml() insists on making my dates look like Tue Dec 23 00:00:00 -0600 2008 Any clues now? On Jan 9, 3:07 am, michael_teter <[email protected]> wrote: > Yeah, the specific post ishttp://www.ruby-forum.com/topic/57923#548266 > > Unfortunately that's not working for me. I assume I should just be > able to do: > > Hash::XML_FORMATTING['datetime'] = Proc.new { |datetime| > datetime.to_s(:rfc822) } > errs.to_xml > > I'm still getting the long date in the XML output. I wonder where > it's getting that? > > I would love to look through the code that's producing the XML, but > thus far I cannot figure out where it lives... > > On Jan 9, 2:56 am, MaD <[email protected]> wrote: > > > a guy in this thread had the same problem and obviously fixed it > > (scroll down to the end).http://www.ruby-forum.com/topic/57923 --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

