use pre-decrement instead of post-decrement
This commit is contained in:
parent
5e6fa608eb
commit
8ee53708ae
|
@ -58,7 +58,7 @@ foreach($events as $event){
|
|||
}
|
||||
if($return_event['allDay'] == true){
|
||||
$return_event['start'] = $result->format('Y-m-d');
|
||||
$return_event['end'] = date('Y-m-d', $result->format('U') + $duration--);
|
||||
$return_event['end'] = date('Y-m-d', $result->format('U') + --$duration);
|
||||
}else{
|
||||
$return_event['start'] = $result->format('Y-m-d H:i:s');
|
||||
$return_event['end'] = date('Y-m-d H:i:s', $result->format('U') + $duration);
|
||||
|
|
Loading…
Reference in New Issue