]> source.dussan.org Git - nextcloud-server.git/commitdiff
Calendar: fix modifying of end DateTime object
authorGeorg Ehrke <dev@georgswebsite.de>
Tue, 19 Jun 2012 11:04:11 +0000 (13:04 +0200)
committerGeorg Ehrke <dev@georgswebsite.de>
Tue, 19 Jun 2012 11:04:11 +0000 (13:04 +0200)
apps/calendar/lib/object.php

index 12dbd3b8b488fac4348cf56b734a6de85c76a6e5..2e0d37d14ad889415dac6cde97d67884e6951779 100644 (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');
                        }