module ActiveSupport
class TimeWithZone
def as_json(options = nil)
if ActiveSupport::JSON::Encoding.use_standard_json_time_format
xmlschema
else
#%(#{time.strftime("%Y/%m/%d %H:%M:%S")} #{formatted_offset(false)})
%(#{time.strftime("%Y-%m-%d %H:%M:%S")})
end
end
end
end