plugins/libkolab

Thomas Brüderli bruederli at kolabsys.com
Mon Jul 21 17:19:14 CEST 2014


 plugins/libkolab/lib/kolab_format_xcal.php |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

New commits:
commit 5b26d69e202eb5ac3e4467dc14285cb8244c474b
Author: Thomas Bruederli <bruederli at kolabsys.com>
Date:   Mon Jul 21 17:18:59 2014 +0200

    Only compare date strings for allday events

diff --git a/plugins/libkolab/lib/kolab_format_xcal.php b/plugins/libkolab/lib/kolab_format_xcal.php
index d3ff583..6624b02 100644
--- a/plugins/libkolab/lib/kolab_format_xcal.php
+++ b/plugins/libkolab/lib/kolab_format_xcal.php
@@ -316,7 +316,13 @@ abstract class kolab_format_xcal extends kolab_format
                 // RFC 5545: "It is incremented [...] each time the Organizer makes a significant revision to the calendar component."
                 // TODO: make the list of properties considered 'significant' for scheduling configurable
                 foreach (self::$scheduling_properties as $prop) {
-                    if ($object[$prop] != $old[$prop]) {
+                    $a = $old[$prop];
+                    $b = $object[$prop];
+                    if ($object['allday'] && ($prop == 'start' || $prop == 'end') && $a instanceof DateTime && $b instanceof DateTime) {
+                        $a = $a->format('Y-m-d');
+                        $b = $b->format('Y-m-d');
+                    }
+                    if ($a != $b) {
                         $object['sequence']++;
                         break;
                     }




More information about the commits mailing list