From 971037d755050d7d58daa8e6ba4b97554cb023fd Mon Sep 17 00:00:00 2001 From: Lionel VESSILLER Date: Fri, 15 Mar 2019 08:42:00 +0100 Subject: [PATCH] Fix dol_print_date error for real dates in cotract card --- htdocs/contrat/card.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/contrat/card.php b/htdocs/contrat/card.php index 4f0022a7796..1b638849538 100644 --- a/htdocs/contrat/card.php +++ b/htdocs/contrat/card.php @@ -1911,21 +1911,21 @@ else // Si pas encore active if (! $objp->date_debut_reelle) { print $langs->trans("DateStartReal").': '; - if ($objp->date_debut_reelle) print dol_print_date($objp->date_debut_reelle, 'day'); + if ($objp->date_debut_reelle) print dol_print_date($db->jdate($objp->date_debut_reelle), 'day'); else print $langs->trans("ContractStatusNotRunning"); } // Si active et en cours if ($objp->date_debut_reelle && ! $objp->date_fin_reelle) { print $langs->trans("DateStartReal").': '; - print dol_print_date($objp->date_debut_reelle, 'day'); + print dol_print_date($db->jdate($objp->date_debut_reelle), 'day'); } // Si desactive if ($objp->date_debut_reelle && $objp->date_fin_reelle) { print $langs->trans("DateStartReal").': '; - print dol_print_date($objp->date_debut_reelle, 'day'); + print dol_print_date($db->jdate($objp->date_debut_reelle), 'day'); print '  -  '; print $langs->trans("DateEndReal").': '; - print dol_print_date($objp->date_fin_reelle, 'day'); + print dol_print_date($db->jdate($objp->date_fin_reelle), 'day'); } if (! empty($objp->comment)) print "  -  ".$objp->comment; print '';