Qual: Utilisation de dolibarr_print_date chaque fois que c'est possible au lieu de strftime

This commit is contained in:
Laurent Destailleur
2007-08-08 15:14:52 +00:00
parent af929b1dc2
commit 119070e3ab
70 changed files with 83 additions and 87 deletions

View File

@@ -356,7 +356,7 @@ function info()
// On change d'ann<6E>e fiscal si besoin
if($conf->global->SOCIETE_FISCAL_MONTH_START > 1 && $current_month >= $conf->global->SOCIETE_FISCAL_MONTH_START && $create_month >= $conf->global->SOCIETE_FISCAL_MONTH_START)
{
$this->yy = substr(strftime("%Y",mktime(0,0,0,date("m"),date("d"),date("Y")+1)),$numbityear);
$this->yy = substr(strftime("%Y",dolibarr_mktime(0,0,0,date("m"),date("d"),date("Y")+1)),$numbityear);
}
else
{
@@ -368,7 +368,7 @@ function info()
{
$this->searchLastWithNoYear .= '[0-9]';
}
$previousYear = substr(strftime("%Y",mktime(0,0,0,date("m"),date("d"),date("Y")-1)),$numbityear);
$previousYear = substr(strftime("%Y",dolibarr_mktime(0,0,0,date("m"),date("d"),date("Y")-1)),$numbityear);
$this->searchLastWithPreviousYear .= $previousYear;
$k++;
}