-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: can't convert ActiveSupport::TimeWithZone into time #61
Comments
I might be same as #60 |
This breaks for me with |
Yep, I'm gonna deal with this sometime shortly today. |
yes, it's a duplication of #60. Sorry. |
Just released |
Thanks @travisjeffery! |
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.. require "rubygems"
=> false
require "active_utils"
=> true
require "timecop"
=> true
Timecop.travel(2.days.ago)
=> Wed Mar 06 16:49:15 -0700 2013
require "ruby_units"
=> true
Timecop.travel(2.days.ago)
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' |
Steps to reproduce:
Code which causes the issue:
ae1ed2c#L1R54
The text was updated successfully, but these errors were encountered: