Bug #1247: YAML::load converts some dates into strings
http://redmine.ruby-lang.org/issues/show/1247

Author: Matthew Wilson
Status: Open, Priority: Normal
ruby -v: 1.8

The yaml parser isn't converting this string to a date:

$ irb
irb(main):001:0> require 'yaml';
irb(main):008:0> YAML::load '2008-09-02 17:47:44.549355'
=> "2008-09-02 17:47:44.549355"

As far as I understand, that date is a valid date.  The only way I can get it to parse into a date is by adding a trailing Z at the end:

irb(main):009:0> YAML::load '2008-09-02 17:47:44.549355 Z'
=> Tue Sep 02 17:47:44 UTC 2008


----------------------------------------
http://redmine.ruby-lang.org