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.

There was a problem

You must be a member of this account.

Joel Hoffman's latest activity

Monday, May 25 2009
2019 Format two-digit years correctly was updated in Ruby on Rails
  • Joel Hoffman
    Joel Hoffman commented at 6:59 PM

    I mean, this isn't hard to demonstrate. If i is an activerecord object with a date column named test_date,

    >> i.test_date = '09-05-25' => "09-05-25" >> i.test_d...

  • Joel Hoffman
    Joel Hoffman commented at 6:45 PM

    The above comment that the string is simply passed unmodified to the
    database is incorrect. Dates assigned to ActiveRecord objects from
    params are ultimately co...

Wednesday, March 04 2009
2019 Format two-digit years correctly was updated in Ruby on Rails
  • Joel Hoffman
    Joel Hoffman commented at 6:26 PM

    This is the default behavior of Ruby's Date class. If the second option to Date._parse is true, 50-1-1 is parsed as Jan 1 2050, but it defaults to false, and ac...