Fix end of day

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5523 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson
2006-11-14 17:39:00 +00:00
parent b97ffa2a4f
commit 6c271a98dc

View File

@@ -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)