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.

JackC's latest activity

Wednesday, November 18 2009
3386 ActiveResource not picking up (validation) errors in 2.3.4 was updated in Ruby on Rails
Monday, October 05 2009
3117 TimeWithZone comparison fails for distinct instances of same time was updated in Ruby on Rails
  • JackC
    JackC commented at 7:47 PM

    Just ran into this in tests myself. You can determine the usec method to see the difference. I worked around this in my tests by specifying times instead of usi...

Friday, July 31 2009
2479 Inconsistant time zone handling was updated in Ruby on Rails
  • JackC
    JackC commented at 2:07 PM

    I don't see how just a format string would would also change a local time to UTC time.

    Anyway this is the code I'm loading in an initializer and it is definitel...

Friday, May 22 2009
2479 Inconsistant time zone handling was updated in Ruby on Rails
  • JackC
    JackC commented at 2:43 PM

    I've been running this code with the change to #getutc for the last month in production without any issues. Any chance of getting this made the default?

Monday, April 13 2009
2479 Inconsistant time zone handling was updated in Ruby on Rails
  • JackC
    JackC commented at 4:28 PM

    I added this line in an initializer and it seems to solve the problem.

    
    ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS[:db] = lambda { |time| ...
Friday, April 10 2009
2479 Inconsistant time zone handling was created in Ruby on Rails
  • JackC
    JackC created the ticket at 8:39 PM

    I'm storing datetimes in MySQL in UTC. I want to retrieve them based on date.

    Here's the problem. Time objects ignore the time zone in to_s(:db).

    
    >> Time.loc...
Wednesday, February 18 2009
1845 Finder methods ignore :include in has_many :through was updated in Ruby on Rails
  • JackC
    JackC commented at 5:28 PM

    Line 52 of active_record/associations/association_collection.rb that is.

  • JackC
    • Tag changed from :include, :through, finder to :include, :through, eagerloading, eager_loading, find, finder
    by JackC at 5:27 PM

    This is also an issue in 2.3 RC1.

    I've also found that all works even the find(:all) doesn't.

    It seems to be fixable by inserting the following line at line 52.

    ...