From bd3b44262fe258ff3c9b21ba67e41a8324de6997 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 26 Oct 2008 15:21:54 +0000 Subject: [PATCH] Wrong format of date --- htdocs/compta/facture.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index fd3808159ef..1eb4f15e1f0 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -3453,14 +3453,16 @@ else if ($objp->df > 0) { + $y = dolibarr_print_date($objp->df,'%Y'); + $m = dolibarr_print_date($objp->df,'%m'); + $mt = dolibarr_print_date($objp->df,'%b'); + $d = dolibarr_print_date($objp->df,'%d'); print ''; - $y = strftime('%Y',$objp->df); - $m = strftime('%m',$objp->df); - print strftime('%d',$objp->df); + print $d; print ' '; - print substr(strftime('%B',$objp->df),0,3).''; + print $mt.''; print ' '; - print strftime('%Y',$objp->df).''; + print $y.''; } else {