correction bug
This commit is contained in:
@@ -334,7 +334,14 @@ class EventController extends AbstractController
|
||||
|
||||
$datestart=$event->getStart();
|
||||
$dateend =$event->getEnd();
|
||||
$duration=$dateend->diff($datestart)->d;
|
||||
dump($datestart);
|
||||
dump($dateend);
|
||||
dump($duration);
|
||||
if($am&&$ap) {
|
||||
if ($duration >= 1) {
|
||||
$dateend->SetTime(0,0,-1);
|
||||
}
|
||||
$datestart->SetTime(0,0,0);
|
||||
$dateend->add(new \DateInterval('P1D'));
|
||||
$dateend->SetTime(0,0,0);
|
||||
|
Reference in New Issue
Block a user