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

Rails DateTime functions do not work properly #13

Open
ssandeep opened this issue Jun 10, 2015 · 1 comment
Open

Rails DateTime functions do not work properly #13

ssandeep opened this issue Jun 10, 2015 · 1 comment

Comments

@ssandeep
Copy link

After adding runt gem to the rails project, some of the functions provided by Rails' DateTime do not work properly.

For eg,
DateTime.now + 1.day #gives some random date in 2035
DateTime.now + 2.hours #gives some random date in 2033

Any idea what might fix these issues?

@sundus-y
Copy link

This started to happen in rails 4.
What's happening is 1.day is returning a Fixnum instead of a Duration object.

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