app/controllers/medivo/labs_controller.rb in medivo-0.2.19 vs app/controllers/medivo/labs_controller.rb in medivo-0.2.20

- old
+ new

@@ -5,13 +5,13 @@ lab_data = Medivo::Lab.data_for_zip(params[:zip_code]) render :json=> lab_data end def find_appointment - data = Medivo::Appointment.find(params[:lab_code], params[:date], params[:am_pm]) + date = Date.strptime(params[:date], "%m/%d/%Y") + data = Medivo::Appointment.find(params[:lab_code], date, params[:am_pm]) render :json=> {times: data} rescue => e - p e.backtrace appointment_error_handler(e) end def make_appointment data = Medivo::Appointment.make(params[:lab_code], params[:time], params[:user])