This project is archived and is in readonly mode.

#2223 ✓resolved
Jonathan del Strother

TimeWithZones aren't serialized properly in Hash#to_xml

Reported by Jonathan del Strother | March 12th, 2009 @ 06:08 PM | in 2.x

Attempting to convert a hash containing TimeWithZone objects to xml :

{:time =>}.to_xml

will give datetimes that don't match iso8601

This patch adds ActiveSupport::TimeWithZone to the list of XML_TYPE_NAMES, so that TimeWithZone#xmlschema is used when serializing them.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

People watching this ticket



Referenced by