aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-11-14 17:39:00 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-11-14 17:39:00 +0000
commit6c271a98dc3004e43bc6aaf7db6fe7c044b0bb3d (patch)
treeeb2ce3d87ddc5bb7830cf5935e3494be95f72644 /activesupport/lib
parentb97ffa2a4fcb59de757745a71a6522662039e634 (diff)
downloadrails-6c271a98dc3004e43bc6aaf7db6fe7c044b0bb3d.tar.gz
rails-6c271a98dc3004e43bc6aaf7db6fe7c044b0bb3d.tar.bz2
rails-6c271a98dc3004e43bc6aaf7db6fe7c044b0bb3d.zip
Fix end of day
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5523 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/core_ext/time/calculations.rb2
1 files changed, 1 insertions, 1 deletions
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)