Hi, I filed a ticket a while back about DateTime.new! being removed from ruby-core. It looks like that was fixed, and replaced with using DateTime.jd (thanks!)
Unfortunately, I'm running in to some test failures on rails when using that
implementation. I can boil it down to this code:
require 'date'
require 'tzinfo/ruby_core_support'
x = Rational(39014323, 16)
p TZInfo::RubyCoreSupport.datetime_new!(x)
When I run this with 1.9.2, I get this output:
#<DateTime: 1963-12-31T16:30:00+00:00 (39014323/16,0,2299161)>
When I run with 1.9.3dev, I get this:
/Users/aaron/svn/tzinfo/tzinfo/lib/tzinfo/ruby_core_support.rb:63:in `jd':
invalid fraction (ArgumentError)
from
/Users/aaron/svn/tzinfo/tzinfo/lib/tzinfo/ruby_core_support.rb:63:in
`datetime_new!'
from test.rb:5:in `<main>'
Any help would be greatly appreciated.
--
Aaron Patterson
http://tenderlovemaking.com/
pgp3jqaBz2aOq.pgp
Description: PGP signature
_______________________________________________ TZInfo-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/tzinfo-users
