diff --git a/dvg_appointments.module b/dvg_appointments.module index 371f18f..9fe6b6f 100644 --- a/dvg_appointments.module +++ b/dvg_appointments.module @@ -1087,6 +1087,9 @@ function _dvg_appointments_load_date_time_dates($element, $form_state, $product_ if (isset($slots_element)) { if (!empty($slots_element) && !is_array($slots_element)) { $date = date('c', $slots_element); + // Strip the time of date. + // Otherwise its unique in the array of dates. + $date = substr($date, 0, strpos($date, 'T')) . 'T00:00:00Z'; $submitted_date = $client_api->get_times_by_date($product_ids, $products_durations, $persons, $date); $dates = array_merge_recursive($dates, $submitted_date); }