From cc69b94775d5b49444c1f35b98b71a7eae285f49 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Sat, 30 Mar 2013 07:29:39 +0100 Subject: [PATCH] Contacts: BDAY VALUE=DATE wasn't saved --- lib/contact.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/contact.php b/lib/contact.php index 474e811b..a2eef775 100644 --- a/lib/contact.php +++ b/lib/contact.php @@ -456,7 +456,8 @@ class Contact extends VObject\VCard implements IPIMObject { } $value = $date->format('Y-m-d'); $this->BDAY = $value; - $this->BDAY->VALUE = 'DATE'; + $this->BDAY->add('VALUE', 'DATE'); + //\OCP\Util::writeLog('contacts', __METHOD__.' BDAY: '.$this->BDAY->serialize(), \OCP\Util::DEBUG); break; case 'N': $property = $this->select($name);