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:
parent
997acb9aad
commit
40d5a609c9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue