Project

General

Profile

Actions

Bug #4571

closed

YAML.load given an ISO8601 timestamp creates an incorrect value for usec

Added by brixen (Brian Shirai) almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
Target version:
-
ruby -v:
-
Backport:
[ruby-core:35713]

Description

=begin
$ ruby1.8.7 -v -ryaml -e 'p YAML.load("2011-03-22t23:32:11.000000342222+01:00").usec'
ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-darwin9.8.0]
342222

$ ruby1.9.2 -v -ryaml -e 'p YAML.load("2011-03-22t23:32:11.000000342222+01:00").usec'
ruby 1.9.2p180 (2011-02-18 revision 30909) [i386-darwin9.8.0]
342222

$ ruby1.9 -v -ryaml -e 'p YAML.load("2011-03-22t23:32:11.000000342222+01:00").usec'
ruby 1.9.3dev (2011-04-12 trunk 31263) [i386-darwin9.8.0]
342222

I believe these should be 0.

Thanks,
Brian
=end


Files

noname (500 Bytes) noname tenderlovemaking (Aaron Patterson), 05/06/2011 08:23 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0