From 85518c6a54080b82c6587bfd889d1ab481eb523f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@destailleur.fr> Date: Fri, 3 Mar 2017 14:04:40 +0100 Subject: [PATCH] FIX #6479 --- htdocs/core/class/vcard.class.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/htdocs/core/class/vcard.class.php b/htdocs/core/class/vcard.class.php index ec3d381354b..8bdeb3e43b7 100644 --- a/htdocs/core/class/vcard.class.php +++ b/htdocs/core/class/vcard.class.php @@ -1,6 +1,6 @@ <?php /* Copyright (C) Kai Blankenhorn <kaib@bitfolge.de> - * Copyright (C) 2005-2010 Laurent Destailleur <eldy@users.sourceforge.org> + * Copyright (C) 2005-2017 Laurent Destailleur <eldy@users.sourceforge.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -14,11 +14,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * v2.0 Initial creation Kai Blankenhorn - * 2007 v3.0 Laurent Destailleur eldy@users.sourceforge.net - * Added functions (as in http://www.ietf.org/rfc/rfc2426.txt): - * setTitle setOrg setProdId setUID */ /** @@ -160,8 +155,9 @@ class vCard * @return void */ function setBirthday($date) - { // $date format is YYYY-MM-DD - $this->properties["BDAY"] = $date; + { + // $date format is YYYY-MM-DD - RFC 2425 and RFC 2426 + $this->properties["BDAY"] = dol_print_date($date, 'dayrfc'); } /** -- GitLab