|
@@ -163,9 +163,10 @@ class AppointmentController extends Controller
|
|
|
$phpTZ = appTZtoPHPTZ($timeZone);
|
|
|
$phpTZObject = new \DateTimeZone($phpTZ);
|
|
|
$startDate = new \DateTime($start, $phpTZObject);
|
|
|
+ $availabilityStartDate = new \DateTime(date('Y-m-d 00:00:00'), $phpTZObject);
|
|
|
$endDate = new \DateTime($end, $phpTZObject);
|
|
|
$endDate->setTime(23, 59, 59);
|
|
|
- $period = new \DatePeriod($startDate, \DateInterval::createFromDateString('1 day'), $endDate);
|
|
|
+ $period = new \DatePeriod($availabilityStartDate, \DateInterval::createFromDateString('1 day'), $endDate);
|
|
|
$days = [];
|
|
|
foreach ($period as $day) {
|
|
|
$days[] = [
|