Actions
Bug #752
closedYAML::load has problems with older dates
Description
=begin
irb(main):002:0> require 'yaml'
=> true
irb(main):003:0> YAML::load('1900-01-01T00:00:00+00:00')
ArgumentError: time out of range
from /usr/lib/ruby/1.8/yaml.rb:133:in utc' from /usr/lib/ruby/1.8/yaml.rb:133:in
node_import'
from /usr/lib/ruby/1.8/yaml.rb:133:in load' from /usr/lib/ruby/1.8/yaml.rb:133:in
load'
from (irb):3
from /usr/lib/ruby/1.8/date.rb:461
There is no reason dates like that shouldn't work.
=end
Files
Updated by davidw (David Welton) almost 16 years ago
- File yaml_datetime.diff yaml_datetime.diff added
=begin
Here is a patch that fixes the problem. It's likely to slow things down some, because DateTime is not fast, but at least it doesn't crash...
=end
Updated by shyouhei (Shyouhei Urabe) almost 16 years ago
- Status changed from Open to Closed
- Assignee set to matz (Yukihiro Matsumoto)
- % Done changed from 0 to 100
=begin
This issue has been fixed in the repository.
=end
Actions
Like0
Like0Like0