/trunk/jrest/services/ImportXLS.php |
---|
606,7 → 606,7 |
$date = $matches[3] . '/' . $matches[2] . '/' . $matches[1]; |
} |
$timestamp = strtotime($date); |
if(! $timestamp) { |
if(! $timestamp || $timestamp > time() + 3600 * 24 * 1) { // une journée d'avance maxi autorisée (décallage horaire ?) |
if($date) trigger_error("ligne \"{$ref_ligne}\": Attention: date erronée ($date)", E_USER_NOTICE); |
return NULL; |
} |