diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-06-20 21:38:56 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-06-20 21:38:56 +0200 |
commit | fedfa4c98e9093fc3499745909c81cce381e2624 (patch) | |
tree | 91f1f037cd4077a57a4da05da319b0d231c66ca1 | |
parent | a6dc7345d0053aa93c8f44f94002b7d2426c2658 (diff) | |
download | nextcloud-server-fedfa4c98e9093fc3499745909c81cce381e2624.tar.gz nextcloud-server-fedfa4c98e9093fc3499745909c81cce381e2624.zip |
DateTime objects are directly comparable
-rw-r--r-- | apps/calendar/lib/object.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/calendar/lib/object.php b/apps/calendar/lib/object.php index a6ae6590080..7f3322b1ab5 100644 --- a/apps/calendar/lib/object.php +++ b/apps/calendar/lib/object.php @@ -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'); |