Calendar: fix modifying of end DateTime object
This commit is contained in:
parent
a38463d41a
commit
c8c105df33
|
@ -813,7 +813,7 @@ class OC_Calendar_Object{
|
||||||
$return = array();
|
$return = array();
|
||||||
if($allday){
|
if($allday){
|
||||||
$return['start'] = $start_dt->format('Y-m-d');
|
$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')){
|
while($start_dt->format('U') >= $end_dt->format('U')){
|
||||||
$end_dt->modify('+1 day');
|
$end_dt->modify('+1 day');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue