Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

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

#4094
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"

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

State: invalid
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Jeremy Kemper
    Jeremy Kemper
    • State changed from new to invalid

    Z is shorthand for zero offset, so +00:00 is equivalent. We rely on underlying Ruby strftime %Z.

    March 29th, 2010 @ 07:22 AM

  2. amanfredi (at gmail)
    amanfredi (at gmail)

    It is equivalent in meaning but invalid according to ISO 8601.

    March 29th, 2010 @ 03:20 PM

  3. Jeremy Kemper