From 8e68eaa25508c8c302273030a56ecef32f5dc50e Mon Sep 17 00:00:00 2001 From: JonathanMM Date: Mon, 28 Feb 2022 21:57:01 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20d'un=20probl=C3=A8me=20de=20d?= =?UTF-8?q?=C3=A9calage=20de=20date?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/majATrouver.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/majATrouver.js b/utils/majATrouver.js index 64efd7b..c8aa331 100644 --- a/utils/majATrouver.js +++ b/utils/majATrouver.js @@ -29,7 +29,7 @@ fs.readFile("data/motsATrouve.txt", "UTF8", function (erreur, contenu) { .forEach((mot, numeroMot) => new Promise((resolve, reject) => { let datePartie = new Date(instanceConfiguration.default.dateOrigine); - datePartie.setDate(datePartie.getDate() + (numeroMot + 1)); + datePartie.setDate(datePartie.getDate() + numeroMot); let datePartieStr = datePartie.getFullYear().toString() +