mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
DateTime objects are directly comparable
This commit is contained in:
parent
a6dc7345d0
commit
fedfa4c98e
1 changed files with 1 additions and 1 deletions
|
|
@ -814,7 +814,7 @@ class OC_Calendar_Object{
|
|||
if($allday){
|
||||
$return['start'] = $start_dt->format('Y-m-d');
|
||||
$end_dt->modify('-1 minute');
|
||||
while($start_dt->format('U') >= $end_dt->format('U')){
|
||||
while($start_dt >= $end_dt){
|
||||
$end_dt->modify('+1 day');
|
||||
}
|
||||
$return['end'] = $end_dt->format('Y-m-d');
|
||||
|
|
|
|||
Loading…
Reference in a new issue