Deliver date properties as DateTime objects (#2802)
This commit is contained in:
parent
889d8670dc
commit
0f57d5c8c8
1 changed files with 2 additions and 2 deletions
|
@ -348,10 +348,10 @@ class kolab_format_contact extends kolab_format
|
|||
$object['freebusyurl'] = $this->obj->freeBusyUrl();
|
||||
|
||||
if ($bday = self::php_datetime($this->obj->bDay()))
|
||||
$object['birthday'] = $bday->format('c');
|
||||
$object['birthday'] = $bday;
|
||||
|
||||
if ($anniversary = self::php_datetime($this->obj->anniversary()))
|
||||
$object['anniversary'] = $anniversary->format('c');
|
||||
$object['anniversary'] = $anniversary;
|
||||
|
||||
$gendermap = array_flip($this->gendermap);
|
||||
if (($g = $this->obj->gender()) && $gendermap[$g])
|
||||
|
|
Loading…
Add table
Reference in a new issue