Fix Date Bug
This commit is contained in:
parent
14dc770a02
commit
679dfabb92
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ module.exports = {
|
|||
if (validDays.includes(formattedDay)) {
|
||||
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`;
|
||||
dayMap.set(formattedDay, false);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue