This project is archived and is in readonly mode.

#1725 ✓resolved
ronin-43150 (at lighthouseapp)

TimeWithZone#xmlschema doesn't accept fraction_digits argument

Reported by ronin-43150 (at lighthouseapp) | January 10th, 2009 @ 02:32 PM | in 2.x

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

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="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Referenced by

Pages