Issue #7760 has been updated by Hiroshi SHIBATA.

Status changed from Open to Feedback

It's already fixed in trunk, 2.1.0 and 2.0.0 HEAD revision.
Ruby 1.9 is only security maintenance phase.

I think this issue should be closed.

----------------------------------------
Bug #7760: "-\n2000-01-02 03:04:05".to_yaml raise ArgumentError
https://bugs.ruby-lang.org/issues/7760#change-48296

* Author: Kazuhiro NISHIYAMA
* Status: Feedback
* Priority: Normal
* Assignee: Aaron Patterson
* Category: lib
* Target version: next minor
* ruby -v: ruby 1.9.3p374 (2013-01-15 revision 38858) [x86_64-darwin12.2.0]
* Backport: 
----------------------------------------
1.9.3's psych raises ArgumentError.
2.0.0's psych doesn't.

% ruby -v -r yaml -e '"-\n2000-01-02 03:04:05".to_yaml'
ruby 1.9.3p374 (2013-01-15 revision 38858) [x86_64-darwin12.2.0]
/Users/kazu/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/psych/scalar_scanner.rb:111:in `utc': argument out of range (ArgumentError)
	from /Users/kazu/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/psych/scalar_scanner.rb:111:in `parse_time'
	from /Users/kazu/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/psych/scalar_scanner.rb:48:in `tokenize'
	from /Users/kazu/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/psych/visitors/yaml_tree.rb:242:in `visit_String'
	from /Users/kazu/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/psych/visitors/yaml_tree.rb:103:in `accept'
	from /Users/kazu/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/psych/visitors/yaml_tree.rb:67:in `push'
	from /Users/kazu/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/psych.rb:242:in `dump'
	from /Users/kazu/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/psych/core_ext.rb:14:in `psych_to_yaml'
	from -e:1:in `<main>'




-- 
https://bugs.ruby-lang.org/