diff --git a/commands/100-games/estimatedfinishdate.js b/commands/100-games/estimatedfinishdate.js index c2c0720..15f4b68 100644 --- a/commands/100-games/estimatedfinishdate.js +++ b/commands/100-games/estimatedfinishdate.js @@ -29,9 +29,8 @@ module.exports = { const start = new Date(2024, 0, 1); const days = (today - start) / (1000 * 60 * 60 * 24); const timepergame = days / beatenGamesDatabaseEntries.length; - const finishdate = new Date(); - finishdate.setDate(start.getDate() + (timepergame * 100)); - const formatteddate = finishdate.toLocaleDateString('en-GB', { year: 'numeric', month: '2-digit', day: '2-digit' }).replace(/\//g, '/'); + start.setDate(start.getDate() + (timepergame * 100)); + const formatteddate = start.toLocaleDateString('en-GB', { year: 'numeric', month: '2-digit', day: '2-digit' }).replace(/\//g, '/'); desc = `${user.displayName} is estimated to finish the 100 Games Challenge on **${formatteddate}**.`; }