diff options
author | Florian Pritz <bluewind@xinu.at> | 2011-09-22 23:17:23 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2011-09-29 22:07:50 +0200 |
commit | 98fad5de9282061c3c0cfc80ea073844771c1c0d (patch) | |
tree | ca095690e600976758e39464dd92ebf7255ff102 /3rdparty/Sabre/VObject/Element/MultiDateTime.php | |
parent | 84e209f1e09cdbb39847e49f25807cf94623bd1a (diff) | |
download | nextcloud-server-98fad5de9282061c3c0cfc80ea073844771c1c0d.tar.gz nextcloud-server-98fad5de9282061c3c0cfc80ea073844771c1c0d.zip |
Reapply fix by Florian Pritz: change DATETIME to DATE-TIME in vcards
The rfc [1] only mentions "DATE-TIME" and after this change events
created in the web ui can be imported by lightning. Before it threw a
syntax error.
[1]: https://tools.ietf.org/html/rfc5545
Signed-off-by: Florian Pritz <bluewind@xinu.at>
From commit 71706282f708da237fe259da5b64c0bcd0c0015f
Diffstat (limited to '3rdparty/Sabre/VObject/Element/MultiDateTime.php')
-rw-r--r-- | 3rdparty/Sabre/VObject/Element/MultiDateTime.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/3rdparty/Sabre/VObject/Element/MultiDateTime.php b/3rdparty/Sabre/VObject/Element/MultiDateTime.php index 07f7e82c346..5e677f5e5b5 100644 --- a/3rdparty/Sabre/VObject/Element/MultiDateTime.php +++ b/3rdparty/Sabre/VObject/Element/MultiDateTime.php @@ -60,7 +60,7 @@ class Sabre_VObject_Element_MultiDateTime extends Sabre_VObject_Property { $val[] = $i->format('Ymd\\THis'); } $this->setValue(implode(',',$val)); - $this->offsetSet('VALUE','DATETIME'); + $this->offsetSet('VALUE','DATE-TIME'); break; case Sabre_VObject_Element_DateTime::UTC : $val = array(); @@ -69,7 +69,7 @@ class Sabre_VObject_Element_MultiDateTime extends Sabre_VObject_Property { $val[] = $i->format('Ymd\\THis\\Z'); } $this->setValue(implode(',',$val)); - $this->offsetSet('VALUE','DATETIME'); + $this->offsetSet('VALUE','DATE-TIME'); break; case Sabre_VObject_Element_DateTime::LOCALTZ : $val = array(); @@ -77,7 +77,7 @@ class Sabre_VObject_Element_MultiDateTime extends Sabre_VObject_Property { $val[] = $i->format('Ymd\\THis'); } $this->setValue(implode(',',$val)); - $this->offsetSet('VALUE','DATETIME'); + $this->offsetSet('VALUE','DATE-TIME'); $this->offsetSet('TZID', $dt[0]->getTimeZone()->getName()); break; case Sabre_VObject_Element_DateTime::DATE : |