forked from Wavyzz/dolibarr
Fonction mktime sous windows
This commit is contained in:
@@ -518,9 +518,6 @@ function dolibarr_print_date($time,$format='')
|
||||
$smin = $reg[5];
|
||||
if ($syear < 1970 && isset($_SERVER["WINDIR"]))
|
||||
{
|
||||
// Le formatage ne peut etre appliqu<71> car windows ne supporte pas la fonction
|
||||
// mktime si l'ann<6E>e est inf<6E>rieur <20> 1970. On retourne un format fixe
|
||||
// return "$syear-$smonth-$sday";
|
||||
return strftime($format,dolibarr_mktime($shour,$smin,0,$smonth,$sday,$syear));
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user