diff --git a/bot.js b/bot.js index 1035c6f..c492710 100644 --- a/bot.js +++ b/bot.js @@ -73,12 +73,12 @@ bot.onText(/\/cuandoLaRevision/, (msg, match) => { } else { if (date.getTime() > now.getTime()) { const diffTime = Math.abs(date - now); - const diffDays = Math.ceil(diffTime / (1000 * 60 * 60 * 24)) - 1; + const diffDays = Math.ceil(diffTime / (1000 * 60 * 60 * 24)); bot.sendMessage(chatId, "Wait prrito todavía te faltan " + diffDays + " días.").then(() => {}); } else { const diffTime = Math.abs(now - date); - const diffDays = Math.ceil(diffTime / (1000 * 60 * 60 * 24)) - 1; + const diffDays = Math.ceil(diffTime / (1000 * 60 * 60 * 24)); const diffHrs = Math.floor((diffTime % 86400000) / 3600000); // hours const diffMinutes = Math.round(((diffTime % 86400000) % 3600000) / 60000); // minutes