Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Date, DateTime, Time not playing nice with #.day, #hour, etc.

#2980

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

Reported by Ben Wiseley · July 31st, 2009 @ 06:30 PM

State: invalid
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Ben Wiseley
    Ben Wiseley

    Sorry - this is fixed by doing a simple

    sudo gem update --system

    Please delete or mark invalid.

    July 31st, 2009 @ 07:08 PM

  2. Geoff Buesing
    Geoff Buesing
    • State changed from new to invalid

    August 1st, 2009 @ 03:53 PM

  3. bingbing