mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
Qual: Utilisation de dolibarr_print_date chaque fois que c'est possible au lieu de strftime
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user