mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-25 09:23:08 +03:00
Resolve availability generation issue with 5 minute services.
This commit is contained in:
parent
9ddc820176
commit
5d513ea43f
1 changed files with 1 additions and 1 deletions
|
@ -307,7 +307,7 @@ class Availability {
|
||||||
$current_hour = $start_hour;
|
$current_hour = $start_hour;
|
||||||
$diff = $current_hour->diff($end_hour);
|
$diff = $current_hour->diff($end_hour);
|
||||||
|
|
||||||
while (($diff->h * 60 + $diff->i) >= (int)$service['duration'])
|
while (($diff->h * 60 + $diff->i) >= (int)$service['duration'] && $diff->invert === 0)
|
||||||
{
|
{
|
||||||
$available_hours[] = $current_hour->format('H:i');
|
$available_hours[] = $current_hour->format('H:i');
|
||||||
$current_hour->add(new DateInterval('PT' . $interval . 'M'));
|
$current_hour->add(new DateInterval('PT' . $interval . 'M'));
|
||||||
|
|
Loading…
Reference in a new issue