aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/json/encoders/time.rb
blob: 4f964a92e025b106398bb3b02dba1c0d26cef812 (plain) (blame)
1
2
3
4
5
class Time
  def to_json(options = nil) #:nodoc:
    %("#{strftime("%Y/%m/%d %H:%M:%S")} #{formatted_offset(false)}")
  end
end