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.

Ian Moody's latest activity

Friday, August 22 2008
877 Time.to_s wonky was updated in Ruby on Rails
  • Ian Moody
    Ian Moody commented at 9:37 AM

    Thanks, sorry folks.

    I just found the following at the bottom of a file included from environment.rb :

    ActiveSupport::CoreExtensions::Time::Conversions::DATE_...

Thursday, August 21 2008
877 Time.to_s wonky was created in Ruby on Rails
  • Ian Moody
    Ian Moody created the ticket at 12:22 PM

    Tell me I'm missing something obvious here, but the statement:

    Time.now.to_s(:db)

    In Rails 1.2.6 returns in the format:

    'yyyy-mm-dd hh:mm:ss'

    whilst in Rail...