diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php index d1995689c5c..d2752399025 100644 --- a/htdocs/comm/fiche.php +++ b/htdocs/comm/fiche.php @@ -719,7 +719,7 @@ if ($socidp > 0) print '
| '.$langs->trans("ActionsToDo").' | ||||||||||
| | | '; } else { - print ''.strftime("%Y",$obj->da)." | \n"; - $oldyear = strftime("%Y",$obj->da); + print ''.strftime("%Y",$obj->dp)." | \n"; + $oldyear = strftime("%Y",$obj->dp); } - if ($oldmonth == strftime("%Y%b",$obj->da) ) + if ($oldmonth == strftime("%Y%b",$obj->dp) ) { print '| | '; } else { - print '' .strftime("%b",$obj->da)." | \n"; - $oldmonth = strftime("%Y%b",$obj->da); + print '' .strftime("%b",$obj->dp)." | \n"; + $oldmonth = strftime("%Y%b",$obj->dp); } - print ''.strftime("%d",$obj->da)." | \n"; - print ''.strftime("%H:%M",$obj->da).' | '; + print ''.strftime("%d",$obj->dp)." | \n"; + print ''.strftime("%H:%M",$obj->dp).' | '; // Picto warning print ''; - if (date("U",$obj->da) < time()) print ' '.img_warning("Late"); + if (date("U",$obj->dp) < time()) print ' '.img_warning("Late"); else print ' '; print ' | ';