diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2013-09-10 23:37:10 +0200 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2013-09-10 23:37:10 +0200 |
commit | 52830ea6056dc85d8ffcb0cfb7ead7d70624e109 (patch) | |
tree | 3bfd0de172752bcf87430c5fe248e69a89a1f965 /program/lib/Roundcube/rcube_vcard.php | |
parent | 6128ad7e962a8f9bf82a1ef87e4efbe36d719d92 (diff) |
Improve handling of date strings and DateTime values in contacts
Diffstat (limited to 'program/lib/Roundcube/rcube_vcard.php')
-rw-r--r-- | program/lib/Roundcube/rcube_vcard.php | 4 |
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; |