From 67ce3ec5ac460553b4f737eb99081708258cb86b Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Sun, 1 Dec 2019 01:17:45 +0100 Subject: [PATCH] debuggage --- nconnector.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 )";