This project is archived and is in readonly mode.

#4094 ✓invalid
amanfredi (at gmail)

ActiveSupport DateTime and Date conversions xmlschema method returns the wrong format for UTC times

Reported by amanfredi (at gmail) | March 2nd, 2010 @ 08:01 PM

t = Time.parse('Apr 1, 2020')
=> Wed Apr 01 00:00:00 +0000 2020
t.class => Time
t2 = t + 20.years
=> Sun, 01 Apr 2040 00:00:00 +0000
t2.class => DateTime
t.utc.xmlschema => "2020-04-01T00:00:00Z"
t2.utc.xmlschema => "2040-04-01T00:00:00+00:00"

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