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.

This project is archived and is in readonly mode.

Changeset [32b82e4c6f5523cdf5ee78c3022c50b46e018351] by gbuesing

Revision 32b82e4c6f5523cdf5ee78c3022c50b46e018351, committed by Repository · April 21st, 2008 @ 03:57 AM

Duration #since and #ago with no argument (e.g., 5.days.ago) return TimeWithZone when config.time_zone is set. Introducing Time.current, which returns Time.zone.now if config.time_zone is set, otherwise just returns Time.now

http://github.com/rails/rails/co...

5 changed files

  • M activesupport/CHANGELOG
  • M activesupport/lib/active_support/core_ext/time/zones.rb
  • M activesupport/lib/active_support/duration.rb
  • M activesupport/test/core_ext/duration_test.rb
  • M activesupport/test/core_ext/time_with_zone_test.rb