diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-02-24 22:20:40 +0100 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-02-24 22:20:40 +0100 |
commit | 1d1dfcbc1a528314b39322d0b8145e05072cd5ff (patch) | |
tree | a504e3652ac74638ad0fe4cb5acef95fd7a12206 /lib | |
parent | e082d473bb856bdaf48290199bf5d2f1fb4a435d (diff) | |
download | nextcloud-server-1d1dfcbc1a528314b39322d0b8145e05072cd5ff.tar.gz nextcloud-server-1d1dfcbc1a528314b39322d0b8145e05072cd5ff.zip |
replace Sabre_VObject_Element_DateTime with Sabre_VObject_Property_DateTime
Diffstat (limited to 'lib')
-rw-r--r-- | lib/vobject.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/vobject.php b/lib/vobject.php index 2b1f6534cc4..ec80e1d605a 100644 --- a/lib/vobject.php +++ b/lib/vobject.php @@ -41,7 +41,7 @@ class OC_VObject{ */ public static function parse($data){ try { - Sabre_VObject_Property::$classMap['LAST-MODIFIED'] = 'Sabre_VObject_Element_DateTime'; + Sabre_VObject_Property::$classMap['LAST-MODIFIED'] = 'Sabre_VObject_Property_DateTime'; $vobject = Sabre_VObject_Reader::read($data); if ($vobject instanceof Sabre_VObject_Component){ $vobject = new OC_VObject($vobject); @@ -150,12 +150,12 @@ class OC_VObject{ * @param int $dateType * @return void */ - public function setDateTime($name, $datetime, $dateType=Sabre_VObject_Element_DateTime::LOCALTZ){ + public function setDateTime($name, $datetime, $dateType=Sabre_VObject_Property_DateTime::LOCALTZ){ if ($datetime == 'now'){ $datetime = new DateTime(); } if ($datetime instanceof DateTime){ - $datetime_element = new Sabre_VObject_Element_DateTime($name); + $datetime_element = new Sabre_VObject_Property_DateTime($name); $datetime_element->setDateTime($datetime, $dateType); $this->vobject->__set($name, $datetime_element); }else{ |