summaryrefslogtreecommitdiff
path: root/program/lib/Roundcube/rcube_vcard.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-09-11 09:45:43 +0200
committerAleksander Machniak <alec@alec.pl>2013-09-11 09:45:43 +0200
commit7bd9dcdcda53ce93e03d24bf7218e1cf61772894 (patch)
tree4b46e0a0c73b862677a6a3568b74638fa2f7a993 /program/lib/Roundcube/rcube_vcard.php
parent66a549e1331fb85a04d34294b1197e6848a76954 (diff)
parent52830ea6056dc85d8ffcb0cfb7ead7d70624e109 (diff)
Merge branch 'master' of github.com:roundcube/roundcubemail
Diffstat (limited to 'program/lib/Roundcube/rcube_vcard.php')
-rw-r--r--program/lib/Roundcube/rcube_vcard.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/lib/Roundcube/rcube_vcard.php b/program/lib/Roundcube/rcube_vcard.php
index a85eb8873..d54dc56ad 100644
--- a/program/lib/Roundcube/rcube_vcard.php
+++ b/program/lib/Roundcube/rcube_vcard.php
@@ -358,8 +358,8 @@ class rcube_vcard
case 'birthday':
case 'anniversary':
- if (($val = rcube_utils::strtotime($value)) && ($fn = self::$fieldmap[$field])) {
- $this->raw[$fn][] = array(0 => date('Y-m-d', $val), 'value' => array('date'));
+ if (($val = rcube_utils::anytodatetime($value)) && ($fn = self::$fieldmap[$field])) {
+ $this->raw[$fn][] = array(0 => $val->format('Y-m-d'), 'value' => array('date'));
}
break;