MDL-54607 calendar: Update benu lib to allow for instantaneous events

This commit is contained in:
Ankit Agarwal
2017-07-14 09:36:11 +05:30
parent ab7056032d
commit bf4f34f276
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -411,7 +411,7 @@ class iCalendar_event extends iCalendar_component {
// DTEND must be later than DTSTART
// The standard is not clear on how to hande different value types though
// TODO: handle this correctly even if the value types are different
if($this->properties['DTEND'][0]->value <= $this->properties['DTSTART'][0]->value) {
if($this->properties['DTEND'][0]->value < $this->properties['DTSTART'][0]->value) {
return false;
}
+1
View File
@@ -8,3 +8,4 @@ modifications:
5/ updated DTEND;TZID and DTSTAR;TZID values to support quotations (7 Nov 2014)
6/ MDL-49032: fixed rfc2445_fold() to fix incorrect RFC2445_WSP definition (16 Sep 2015)
7/ added timestamp_to_date function to support zero duration events (16 Sept 2015)
8/ Updated \iCalendar_event::invariant_holds() to allow for same dtstart and dtend timestamps (13 July 2017)