diff --git a/nconnector.php b/nconnector.php index fd385ce..fba2e09 100755 --- a/nconnector.php +++ b/nconnector.php @@ -65,8 +65,9 @@ while ($user = $doldb->result->fetch_assoc()) } // vérification si l'utilisateur est à jour de cotisation $datefin = DateTime::createFromFormat("Y-m-d H:i:s", $user['datefin']); - print_r($datefin); + $interval = new DateInterval('P0000Y02M00D'); + print_r($interval); $datefin->add($interval); if ( $datefin->getTimestamp() <= time() ) {