Actions
Bug #7568
closedYaml fails to encode zero date string.
Description
"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'
Actions
Like0
Like0Like0Like0Like0Like0