aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
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)