summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-07-21 15:18:59 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2014-07-21 15:18:59 (GMT)
commit5b26d69e202eb5ac3e4467dc14285cb8244c474b (patch)
treecd53863ca646947fdd485689ea468ec1f692fb5d
parent0a75bfb02350c88ff87e17805a2543058a66496e (diff)
downloadroundcubemail-plugins-kolab-5b26d69e202eb5ac3e4467dc14285cb8244c474b.tar.gz
Only compare date strings for allday events
-rw-r--r--plugins/libkolab/lib/kolab_format_xcal.php8
1 files changed, 7 insertions, 1 deletions
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;
}