Fix: Date output on UTF8 config return value in correct code

This commit is contained in:
Laurent Destailleur 2008-10-26 21:43:51 +00:00
parent 2a021e8b40
commit 0aa9cca4e1
2 changed files with 6 additions and 4 deletions

View File

@ -20,7 +20,7 @@
/**
* \file htdocs/compta/bank/annuel.php
* \ingroup banque
* \brief Page reporting mensuel Entrées/Sorties d'un compte bancaire
* \brief Page reporting mensuel Entr<EFBFBD>es/Sorties d'un compte bancaire
* \version $Id$
*/
@ -41,7 +41,7 @@ else
$year_end=$year_start+2;
}
// Sécurité accés client
// S<EFBFBD>curit<EFBFBD> acc<63>s client
if ($user->societe_id > 0)
{
$socid = $user->societe_id;
@ -53,7 +53,7 @@ llxHeader();
$form = new Form($db);
// Récupère info du compte
// R<EFBFBD>cup<EFBFBD>re info du compte
$acct = new Account($db);
if ($_GET["account"])
{
@ -66,7 +66,7 @@ if ($_GET["ref"])
}
# Ce rapport de trésorerie est basé sur llx_bank (car doit inclure les transactions sans facture)
# Ce rapport de tr<EFBFBD>sorerie est bas<61> sur llx_bank (car doit inclure les transactions sans facture)
# plutot que sur llx_paiement + llx_paiementfourn
$sql = "SELECT sum(f.amount), date_format(f.dateo,'%Y-%m') as dm";

View File

@ -493,6 +493,8 @@ function dolibarr_print_date($time,$format='',$to_gmt=false,$convtooutput=true)
// Page code for text from strftime functions
$pagecodefrom='ISO-8859-1';
$localtime=setlocale(LC_TIME,0);
if (eregi('UTF',$localtime)) $pagecodefrom='UTF-8';
return ($convtooutput?$langs->convToOuptutCharset($ret,$pagecodefrom):$ret);
}