[Pkg-owncloud-commits] [php-sabre-vobject] 115/341: Fix <dtstart> (see errata 3892 from the RFC6321).

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 13:35:39 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 0a4fade83787da44fb6c2f08fc664b7ab12ae299
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date:   Tue Jan 13 16:41:59 2015 +0100

    Fix <dtstart> (see errata 3892 from the RFC6321).
---
 lib/Parser/XML.php | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/lib/Parser/XML.php b/lib/Parser/XML.php
index 52072b4..037fb21 100644
--- a/lib/Parser/XML.php
+++ b/lib/Parser/XML.php
@@ -135,6 +135,15 @@ class XML extends Parser {
 
                         switch ($propertyName) {
 
+                            case 'dtstart':
+                                $propertyType  = static::getTagName($xmlProperty['value'][0]['name']);
+                                $propertyValue = [$xmlProperty['value'][0]['value']];
+
+                                if('date' === $propertyType)
+                                    $propertyParameters['value'] = 'DATE';
+
+                                break;
+
                             case 'geo':
                                 $propertyType               = 'float';
                                 $propertyValue['latitude']  = 0;

-- 
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