VEVENT converter: rrule until on the same day as event
[tine20] / tine20 / Calendar / Model / Event.php
index cf30d74..15945f1 100644 (file)
@@ -492,7 +492,7 @@ class Calendar_Model_Event extends Tinebase_Record_Abstract
             }
         }
         
-        if ($this->rrule_until && $this->rrule_until < $this->dtstart) {
+        if ($this->rrule_until && $this->rrule_until->getTimeStamp() - $this->dtstart->getTimeStamp() < -1) {
             throw new Tinebase_Exception_Record_Validation('rrule until must not be before dtstart');
         }
     }