diff --git a/nconnector.php b/nconnector.php index fba2e09..e59abad 100755 --- a/nconnector.php +++ b/nconnector.php @@ -65,10 +65,10 @@ 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']); - $interval = new DateInterval('P0000Y02M00D'); - print_r($interval); + $datefin->add($interval); + print_r($datefin); if ( $datefin->getTimestamp() <= time() ) { echo "write_status( $insert, " . $user['login'] . ", 0 )";