diff --git a/htdocs/compta/stats/index.php b/htdocs/compta/stats/index.php index 7b5b23f726f..835d8a999fe 100644 --- a/htdocs/compta/stats/index.php +++ b/htdocs/compta/stats/index.php @@ -377,7 +377,8 @@ $now_show_delta = 0; $minyear = substr($minyearmonth, 0, 4); $maxyear = substr($maxyearmonth, 0, 4); $nowyear = dol_print_date(dol_now('gmt'), "%Y", 'gmt'); -$nowyearmonth = strftime("%Y-%m", dol_now()); +$nowyearmonth = dol_print_date(dol_now(), "%Y%m"); +//$nowyearmonth = strftime("%Y-%m", dol_now()); $maxyearmonth = max($maxyearmonth, $nowyearmonth); $now = dol_now(); $casenow = dol_print_date($now, "%Y-%m");