This project is archived and is in readonly mode.

Changeset [32b82e4c6f5523cdf5ee78c3022c50b46e018351] by gbuesing

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...

Committed by Repository

  • 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

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>