This project is archived and is in readonly mode.
Date, DateTime, Time not playing nice with #.day, #hour, etc.
Reported by Ben Wiseley | July 31st, 2009 @ 06:30 PM
On Rails 2.3.3, Ruby 1.8.7
I'm pretty sure this used to work in Rails 2.3.2 (we started getting lots of errors related to this kind of thing after upping to 2.3.3)
These should all add one day
Date.today + 1.day
DateTime.now + 1.day
Time.now + 1.day
These DO all add one month
Date.today + 1.month
DateTime.now + 1.month
Time.now + 1.month
These should add one hour
DateTime.now + 1.hour
Time.now + 1.hour
Comments and changes to this ticket
-
Ben Wiseley July 31st, 2009 @ 07:08 PM
Sorry - this is fixed by doing a simple
sudo gem update --system
Please delete or mark invalid.
-
Geoff Buesing August 1st, 2009 @ 03:53 PM
- State changed from new to invalid
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>