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.

Marc-André Lafortune's latest activity

Monday, May 09 2011
6306 Collection Associations Build Method Not Supported for STI was updated in Ruby on Rails
  • Marc-André Lafortune
    Marc-André Lafortune commented at 9:11 PM

    Got bitten by this. A solution for this problem would be nice.

Wednesday, March 16 2011
6573 TimeWithZone should not accept unrecognized time zones was updated in Ruby on Rails
  • Marc-André Lafortune
    Marc-André Lafortune commented at 7:20 PM

    Here is my patch.

    {Date}Time#in_time_zone, Time.use_zone and Time.zone= now raise an ArgumentError on invalid timezone arguments.

    Note that I changed test_time_...

Tuesday, March 15 2011
6574 Daylight saving timezone not recognized was updated in Ruby on Rails
  • Marc-André Lafortune
    Marc-André Lafortune commented at 10:45 PM

    Thanks for looking it up.

    For the record, EST5EDT is not quite "EDT". It is the same as "Eastern Time (US & Canada)", i.e. EST (UTC-5) in the 'winter', and 'EDT...

6573 TimeWithZone should not accept unrecognized time zones was updated in Ruby on Rails
Monday, March 14 2011
6575 helper :all from ActionMailer was created in Ruby on Rails
  • Marc-André Lafortune
    Marc-André Lafortune created the ticket at 5:12 PM

    The documentation for AbstractController::Helpers#helper states that :all is a special parameter.

    Indeed, from a ActionController::Base, helper :all will use al...

6574 Daylight saving timezone not recognized was created in Ruby on Rails
  • Marc-André Lafortune
    Marc-André Lafortune created the ticket at 2:57 PM

    While the time zone "EST" is recognized, "EDT" isn't.

    Time.now.zone # => "EST" last week, "EDT" this week.
    Time.now.in_time_zone("EST").to_s # => ".... -0500"
    ...
6573 TimeWithZone should not accept unrecognized time zones was updated in Ruby on Rails
  • Marc-André Lafortune
    • Tag changed from bug active to activesupport, bug, timewithzone
    by Marc-André Lafortune at 2:54 PM
  • Marc-André Lafortune
    Marc-André Lafortune created the ticket at 2:53 PM

    Currently, the following doesn't raise any error:

    t = Time.now.in_time_zone("There is no such timezone"); t.utc
    

    Many other methods of TimeWithZone will raise ...

Sunday, March 13 2011
6534 [PATCH] Fixing inconsistencies with Time{WithZone}#{hash,eql?} was updated in Ruby on Rails
  • Marc-André Lafortune
    Marc-André Lafortune commented at 7:48 PM

    Thanks for testing on your side.

    Yes, it could be worthwhile to add a test as you suggest.

Saturday, March 12 2011
6534 [PATCH] Fixing inconsistencies with Time{WithZone}#{hash,eql?} was updated in Ruby on Rails
  • Marc-André Lafortune
    Marc-André Lafortune commented at 6:28 PM

    Floats and Integers are quite different: there is no bijection between them and they don't respond to the same methods (e.g. you can't do 10.0.times{}).

    Note th...