Ticket from 24.11, but no replies yet: https://rails.lighthouseapp.com/projects/8994/tickets/6054-datetime-in-to_xml-returns-gmt-from-302 Rails 3.0.1 to_xml: 2010-11-18T14:41:30+01:00 Same code in 3.0.2 and 3.0.3: 2010-11-18T13:41:30+00:00 So the time is correct off course, but shouldn''t this output according to chosen timezone as earlier? to_json in 3.0.2 returns local timezone as before. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
On Tue, Dec 07, 2010 at 02:32:28AM -0800, Espen Antonsen wrote:> Ticket from 24.11, but no replies yet: > https://rails.lighthouseapp.com/projects/8994/tickets/6054-datetime-in-to_xml-returns-gmt-from-302 > > Rails 3.0.1 to_xml: 2010-11-18T14:41:30+01:00 > > Same code in 3.0.2 and 3.0.3: 2010-11-18T13:41:30+00:00 > > So the time is correct off course, but shouldn''t this output according > to chosen timezone as earlier? > > to_json in 3.0.2 returns local timezone as before.I think I have a similar ticket on my plate so I''ll take a look at this. Would you mind adding a more complete reproduction, like an irb session or something? Thanks. -- Aaron Patterson http://tenderlovemaking.com/