Calendar: fix modifying of end DateTime object

This commit is contained in:
Georg Ehrke 2012-06-19 13:04:11 +02:00
parent a38463d41a
commit c8c105df33
1 changed files with 1 additions and 1 deletions

View File

@ -813,7 +813,7 @@ class OC_Calendar_Object{
$return = array();
if($allday){
$return['start'] = $start_dt->format('Y-m-d');
$end_dt->modify('-1 day');
$end_dt->modify('-1 minute');
while($start_dt->format('U') >= $end_dt->format('U')){
$end_dt->modify('+1 day');
}