# => TypeError: can't convert ActiveSupport::TimeWithZone into time
I might be same as #60
This breaks for me with can't convert ActiveSupport::TimeWithZone into Integer (on jruby)
It appears to be trying to call :to_int internally and failing
can't convert ActiveSupport::TimeWithZone into Integer
Yep, I'm gonna deal with this sometime shortly today.
yes, it's a duplication of #60. Sorry.
fallback to giving Time#at the float representation of the Time objec…
…t if the Ruby implementation can't handle a Time object (fix #60, fix #61)
Just released v0.5.8 which fixes this.
I still get the same problem as @glebm on JRuby? Seems to make TimeCop unusable on JRuby but it could actually be a ruby_units problem..
=> Wed Mar 06 16:49:15 -0700 2013
TypeError: can't convert Time into Integer
from org/jruby/RubyTime.java:983:in `at'
from .../jruby-1.7.3@.../bundler/gems/ruby-units-323853496e1f/lib/ruby_units/time.rb:22:in `at'
from .../jruby-1.7.3@.../gems/timecop-0.5.9.2/lib/timecop/time_stack_item.rb:65:in `time'
from .../jruby-1.7.3@.../gems/timecop-0.5.9.2/lib/timecop/time_extensions.rb:6:in `mock_time'