Project

General

Profile

This project is closed and read-only.

Actions

Bug #752

closed

YAML::load has problems with older dates

Bug #752: YAML::load has problems with older dates

Added by davidw (David Welton) almost 18 years ago. Updated over 15 years ago.

Status:
Closed
Target version:
-
ruby -v:
[ruby-core:19919]

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

yaml_datetime.diff (2.79 KB) yaml_datetime.diff yaml datetime patch davidw (David Welton), 11/14/2008 01:04 AM
Actions

Also available in: PDF Atom