From: Yusuke Endoh <redmine@...>
Date: 2010-04-08T22:22:57+09:00
Subject: [ruby-core:29323] [Bug #1247] YAML::load converts some dates into strings

Issue #1247 has been updated by Yusuke Endoh.


Hi,

> 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"


I guess this is a bug of syck.  Aaron, are you willing to fix this?

Psych seems to work correctly:

  YAML::ENGINE.yamler = "psych"
  p YAML::load "2008-09-02 17:47:44.549355"
    #=> 2008-09-02 17:47:44 +0000


I suggest to declare that any bug of syck will no longer be fixed
unless it is fatal (such as SEGV).  Then, I can close all tickets
about bug of syck (#1311, #1758, #2767, more?).

-- 
Yusuke Endoh <mame@tsg.ne.jp>
----------------------------------------
http://redmine.ruby-lang.org/issues/show/1247

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