Fix Date Bug

This commit is contained in:
Michael 2025-01-11 01:17:21 -05:00
parent 14dc770a02
commit 679dfabb92

View file

@ -204,7 +204,7 @@ module.exports = {
if (validDays.includes(formattedDay)) { if (validDays.includes(formattedDay)) {
dayMap.set(formattedDay, true); dayMap.set(formattedDay, true);
} }
else if (formattedDay != (monthName + ' ' + (new Date()).getDate().toString())) { else if (formattedDay != (monthName + ' ' + (new Date()).getDate().toString().padStart(2, 0))) {
invalidString += `${formattedDay}\n`; invalidString += `${formattedDay}\n`;
dayMap.set(formattedDay, false); dayMap.set(formattedDay, false);
} }