1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

fix wrong method used in the TimeWithZone#inspect method docs [ci skip]

This commit is contained in:
yuuji.yaginuma 2015-09-10 09:38:09 +09:00
parent 997acb9aad
commit 40d5a609c9

View file

@ -132,7 +132,7 @@ module ActiveSupport
# Returns a string of the object's date, time, zone and offset from UTC.
#
# Time.zone.now.httpdate # => "Thu, 04 Dec 2014 11:00:25 EST -05:00"
# Time.zone.now.inspect # => "Thu, 04 Dec 2014 11:00:25 EST -05:00"
def inspect
"#{time.strftime('%a, %d %b %Y %H:%M:%S')} #{zone} #{formatted_offset}"
end