Skip to content
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

Time.now.to_i is broken by newer releases #47

Closed
DanielHeath opened this issue Oct 21, 2012 · 1 comment
Closed

Time.now.to_i is broken by newer releases #47

DanielHeath opened this issue Oct 21, 2012 · 1 comment

Comments

@DanielHeath
Copy link

Back in 0.3.5 I could do

time = Timecop.freeze(Time.now)
puts time.to_i

and get 1350862893 or similar.

After updating to 5.x I get 0 instead.

@travisjeffery
Copy link
Owner

@DanielHeath fixed in v0.5.3 which is available view RubyGems now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants