This project is archived and is in readonly mode.

#2980 ✓invalid
Ben Wiseley

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

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>

People watching this ticket

Pages