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/
pgpZX7DeDbuvI.pgp
Description: PGP signature
