We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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?
The text was updated successfully, but these errors were encountered:
This started to happen in rails 4. What's happening is 1.day is returning a Fixnum instead of a Duration object.
Sorry, something went wrong.
No branches or pull requests
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?
The text was updated successfully, but these errors were encountered: