method
to_json
v2.1.0 -
Show latest stable
- Class:
ActiveSupport::TimeWithZone
to_json(options = nil)public
No documentation available.
# File activesupport/lib/active_support/time_with_zone.rb, line 106
def to_json(options = nil)
if ActiveSupport.use_standard_json_time_format
xmlschema.inspect
else
%("#{time.strftime("%Y/%m/%d %H:%M:%S")} #{formatted_offset(false)}")
end
end