runt
runt copied to clipboard
Rails DateTime functions do not work properly
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?
This started to happen in rails 4. What's happening is 1.day is returning a Fixnum instead of a Duration object.