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.

Kevin Kohrt's latest activity

Monday, April 04 2011
2472 6.days.from_now.to_s(:db) forces utc was updated in Ruby on Rails
  • Kevin Kohrt
    Kevin Kohrt commented at 1:57 PM

    A solution I have seen used to sychronize Time.now and Rails ActiveSupport is to use the TZ environment variable, e.g.

    ENV['TZ'] = 'UTC'
    

    This may require the ...