[Owncloud] Debugging a 500 return code.

Peter Chubb peter at chubb.wattle.id.au
Wed May 23 11:08:56 UTC 2012


Ha.  Finally fixed it.
This change allows zero-duration events and triggers to work.

diff --git a/3rdparty/Sabre/VObject/DateTimeParser.php b/3rdparty/Sabre/VObject/
DateTimeParser.php
index 1e2d54e..b615a0f 100644
--- a/3rdparty/Sabre/VObject/DateTimeParser.php
+++ b/3rdparty/Sabre/VObject/DateTimeParser.php
@@ -125,6 +125,10 @@ class Sabre_VObject_DateTimeParser {
 
             }
 
+           if ($duration == 'P') {
+                   $duration = 'PT0S';
+            }
+
             $iv = new DateInterval($duration);
             if ($invert) $iv->invert = true;
 



More information about the Owncloud mailing list