Permalink
Browse files

Fix end of day

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5523 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent b97ffa2 commit 6c271a98dc3004e43bc6aaf7db6fe7c044b0bb3d @dhh dhh committed Nov 14, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/core_ext/time/calculations.rb
View
2 activesupport/lib/active_support/core_ext/time/calculations.rb
@@ -151,7 +151,7 @@ def beginning_of_day
# 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)

0 comments on commit 6c271a9

Please sign in to comment.