From: "charliesome (Charlie Somerville)" Date: 2012-12-16T12:53:14+09:00 Subject: [ruby-core:50920] [ruby-trunk - Bug #7568][Assigned] Yaml fails to encode zero date string. Issue #7568 has been updated by charliesome (Charlie Somerville). Status changed from Open to Assigned Assignee set to tenderlovemaking (Aaron Patterson) =begin This was fixed in r37288. It might be worth backporting the fix to 1.9.3. Thoughts tenderlove? =end ---------------------------------------- Bug #7568: Yaml fails to encode zero date string. https://bugs.ruby-lang.org/issues/7568#change-34774 Author: anshul (Anshul Khandelwal) Status: Assigned Priority: Normal Assignee: tenderlovemaking (Aaron Patterson) Category: Target version: ruby -v: ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux] "0000-00-00 00:00:00".to_yaml fails with an ArgumentError. Reproducing steps In irb type, require 'yaml' "0000-00-00 00:00:00".to_yaml What was expected => "--- '0000-00-00 00:00:00'\n" What happened ArgumentError: argument out of range from /usr/local/rbenv/versions/1.9.3-p327/lib/ruby/1.9.1/psych/scalar_scanner.rb:111:in `utc' -- http://bugs.ruby-lang.org/