use pre-decrement instead of post-decrement

This commit is contained in:
Georg Ehrke 2011-12-25 15:07:53 +01:00
parent 5e6fa608eb
commit 8ee53708ae
1 changed files with 1 additions and 1 deletions

View File

@ -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);