diff --git a/htdocs/compta/paiement/rapport.php b/htdocs/compta/paiement/rapport.php index 1cf69b6086c..e5b7b93753c 100644 --- a/htdocs/compta/paiement/rapport.php +++ b/htdocs/compta/paiement/rapport.php @@ -103,11 +103,11 @@ for ($formyear = $syear - 2; $formyear < $syear +1 ; $formyear++) { if ($formyear == $syear) { - print ""; } else { - print ""; } } print "\n"; @@ -152,14 +152,14 @@ if ($year) $var=true; while (($file = readdir($handle))!==false) { - if (substr($file, 0, 8) == 'paiement') + if (eregi('^payment',$file)) { $var=!$var; $tfile = $dir . '/'.$year.'/'.$file; $relativepath = $year.'/'.$file; print "".''.img_pdf().' '.$file.''; - print ''.filesize($tfile). ' bytes'; - print ''.strftime("%d %b %Y %H:%M:%S",filemtime($tfile)).''; + print ''.filesize($tfile). ' '.$langs->trans("Bytes").''; + print ''.dolibarr_print_date(filemtime($tfile),"%d %b %Y %H:%M:%S").''; } } print '';