From 6c271a98dc3004e43bc6aaf7db6fe7c044b0bb3d Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 14 Nov 2006 17:39:00 +0000 Subject: Fix end of day git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5523 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/lib/active_support/core_ext/time/calculations.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activesupport/lib/active_support/core_ext/time/calculations.rb b/activesupport/lib/active_support/core_ext/time/calculations.rb index cdfcdf57d7..cd412368dc 100644 --- a/activesupport/lib/active_support/core_ext/time/calculations.rb +++ b/activesupport/lib/active_support/core_ext/time/calculations.rb @@ -151,7 +151,7 @@ module ActiveSupport #:nodoc: # Returns a new Time representing the end of the day (23:59:59) def end_of_day - change(:hour => 23, :minute => 59, :sec => 59) + change(:hour => 23, :min => 59, :sec => 59) end # Returns a new Time representing the start of the month (1st of the month, 0:00) -- cgit v1.2.3