mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
rdv: rdv-> activity: convert some fields
This commit is contained in:
@@ -225,11 +225,14 @@ class CalendarController extends AbstractController
|
||||
array_push($professionalsId, $p->getId());
|
||||
}
|
||||
|
||||
$durationTime = $entity->getEndDate()->diff($entity->getStartDate());
|
||||
$durationTimeInMinutes = $durationTime->days*1440 + $durationTime->h*60 + $durationTime->i;
|
||||
|
||||
$activityData = [
|
||||
'personsId' => $personsId,
|
||||
'professionalsId' => $professionalsId,
|
||||
'date' => $entity->getStartDate()->format('Y-m-d'),
|
||||
'durationTime' => $entity->getEndDate()->diff($entity->getStartDate())->format("%H:%M")
|
||||
'durationTime' => $durationTimeInMinutes
|
||||
];
|
||||
|
||||
return $this->render($view, [
|
||||
|
Reference in New Issue
Block a user