[TZInfo-users] DateTime.new! removal from ruby-core
aaron at tenderlovemaking.com
Mon Jun 6 13:28:57 EDT 2011
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
Unfortunately, I'm running in to some test failures on rails when using that
implementation. I can boil it down to this code:
x = Rational(39014323, 16)
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 487 bytes
Desc: not available
More information about the TZInfo-users