summaryrefslogtreecommitdiffstats
path: root/3rdparty
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-09-22 23:17:23 +0200
committerFlorian Pritz <bluewind@xinu.at>2011-09-24 18:41:52 +0200
commit71706282f708da237fe259da5b64c0bcd0c0015f (patch)
tree74c31b6efaef435ed12bf95a905b5eba4de0e5fa /3rdparty
parentb0e23a16340428af2bae3330bddbf8988d01ce00 (diff)
downloadnextcloud-server-71706282f708da237fe259da5b64c0bcd0c0015f.tar.gz
nextcloud-server-71706282f708da237fe259da5b64c0bcd0c0015f.zip
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>
Diffstat (limited to '3rdparty')
-rw-r--r--3rdparty/Sabre/VObject/Element/DateTime.php6
-rw-r--r--3rdparty/Sabre/VObject/Element/MultiDateTime.php6
2 files changed, 6 insertions, 6 deletions
diff --git a/3rdparty/Sabre/VObject/Element/DateTime.php b/3rdparty/Sabre/VObject/Element/DateTime.php
index 63af858dd68..30e5c6ca86a 100644
--- a/3rdparty/Sabre/VObject/Element/DateTime.php
+++ b/3rdparty/Sabre/VObject/Element/DateTime.php
@@ -70,20 +70,20 @@ class Sabre_VObject_Element_DateTime extends Sabre_VObject_Property {
$this->setValue($dt->format('Ymd\\THis'));
$this->offsetUnset('VALUE');
$this->offsetUnset('TZID');
- $this->offsetSet('VALUE','DATETIME');
+ $this->offsetSet('VALUE','DATE-TIME');
break;
case self::UTC :
$dt->setTimeZone(new DateTimeZone('UTC'));
$this->setValue($dt->format('Ymd\\THis\\Z'));
$this->offsetUnset('VALUE');
$this->offsetUnset('TZID');
- $this->offsetSet('VALUE','DATETIME');
+ $this->offsetSet('VALUE','DATE-TIME');
break;
case self::LOCALTZ :
$this->setValue($dt->format('Ymd\\THis'));
$this->offsetUnset('VALUE');
$this->offsetUnset('TZID');
- $this->offsetSet('VALUE','DATETIME');
+ $this->offsetSet('VALUE','DATE-TIME');
$this->offsetSet('TZID', $dt->getTimeZone()->getName());
break;
case self::DATE :
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 :