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.

TimeWithZone#xmlschema doesn't accept fraction_digits argument

#1725

The TimeWithZone#xmlschema method currently doesn't accept a fraction_digits argument (which allows fractional seconds to be displayed) in the same way that Time#xmlschema does.

The attached patch fixes that.

e.g.:


>> require 'activesupport'
=> true
>> Time.zone = 'UTC'
=> "UTC"
>> Time.now.xmlschema(6)
=> "2009-01-10T14:23:24.701246+00:00"
>> Time.zone.now.xmlschema(6)
ArgumentError: wrong number of arguments (1 for 0)
	from (irb):4:in `xmlschema'
	from (irb):4

Reported by ronin-43150 (at lighthouseapp) · January 10th, 2009 @ 02:32 PM

State: resolved
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Repository
    Repository
    • State changed from new to resolved
    • Tag changed from patch, time, timewithzone, tiny to activesupport, patch, time, timewithzone, tiny

    (from [5664f24973b1d4f8db7e78b73482eaebf36cf0ab]) TimeWithZone#xmlschema accepts optional fraction_digits argument [#1725 TimeWithZone#xmlschema doesn't accept fraction_digits argument state:resolved] http://github.com/rails/rails/co...

    January 11th, 2009 @ 08:02 PM

  2. Repository
    Repository

    (from [296ca4da1700eb27a7043112d22027444ea0e548]) TimeWithZone#xmlschema accepts optional fraction_digits argument [#1725 TimeWithZone#xmlschema doesn't accept fraction_digits argument state:resolved] http://github.com/rails/rails/co...

    January 11th, 2009 @ 08:02 PM

  3. Geoff Buesing
    Geoff Buesing

    @Nicholas -- thanks, good catch! I pulled this into 2-2-stable as well.

    January 11th, 2009 @ 08:04 PM