This project is archived and is in readonly mode.
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
-
Repository January 11th, 2009 @ 08:02 PM
- 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 state:resolved] http://github.com/rails/rails/co...
-
Repository January 11th, 2009 @ 08:02 PM
(from [296ca4da1700eb27a7043112d22027444ea0e548]) TimeWithZone#xmlschema accepts optional fraction_digits argument [#1725 state:resolved] http://github.com/rails/rails/co...
-
Geoff Buesing January 11th, 2009 @ 08:04 PM
@Nicholas -- thanks, good catch! I pulled this into 2-2-stable as well.
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
- Nobody is watching this ticket.
Attachments
Referenced by
- 1725 TimeWithZone#xmlschema doesn't accept fraction_digits argument (from [5664f24973b1d4f8db7e78b73482eaebf36cf0ab]) TimeWit...
- 1725 TimeWithZone#xmlschema doesn't accept fraction_digits argument (from [296ca4da1700eb27a7043112d22027444ea0e548]) TimeWit...