Deliver date properties as DateTime objects (#2802)

This commit is contained in:
Thomas Bruederli 2014-01-27 10:05:05 +01:00
parent 889d8670dc
commit 0f57d5c8c8

View file

@ -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])