Merge branch 'master' into dist/eole/2.7.2/master

This commit is contained in:
2022-03-14 14:21:08 +01:00

View File

@@ -64,12 +64,14 @@ class RestController extends AbstractFOSRestController
}
// On formate le tableau de jour
$mini=new \Datetime('2022-03-07 00:00');
$start=new \Datetime('00:00');
$start->modify("monday this week");
$end=new \Datetime('00:00');
$end->modify("last day of this month");
$end->modify("next sunday");
$start->modify("previous month");
if($start<$mini) $start=clone $mini;
$events = $em
->createQueryBuilder('event')