[Pkg-owncloud-commits] [php-sabre-vobject] 127/341: Time differs with xCal.

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 13:35:40 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository php-sabre-vobject.

commit 13006e5068bcba935a1f6d9e0d1a2e481e950f98
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date:   Wed Jan 14 16:52:33 2015 +0100

    Time differs with xCal.
---
 lib/Property/Time.php | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)

diff --git a/lib/Property/Time.php b/lib/Property/Time.php
index 9cc99b5..b1f8344 100644
--- a/lib/Property/Time.php
+++ b/lib/Property/Time.php
@@ -47,7 +47,6 @@ class Time extends Text {
     function getJsonValue() {
 
         $parts = DateTimeParser::parseVCardTime($this->getValue());
-
         $timeStr = '';
 
         // Hour
@@ -91,4 +90,24 @@ class Time extends Text {
 
     }
 
+    /**
+     * Sets the XML value, as it would appear in a xCard or xCal object.
+     *
+     * The value must always be an array.
+     *
+     * @param array $value
+     * @return void
+     */
+    function setXmlValue(array $value) {
+
+        $value = array_map(
+            function($value) {
+                return str_replace(':', '', $value);
+            },
+            $value
+        );
+        parent::setXmlValue($value);
+
+    }
+
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git



More information about the Pkg-owncloud-commits mailing list