Change End Date
This commit is contained in:
parent
da0accc304
commit
a153cf39e4
1 changed files with 1 additions and 5 deletions
|
@ -179,11 +179,7 @@ module.exports = {
|
|||
interaction.options.getString('start-date') ??
|
||||
threadStarterMessage.createdTimestamp,
|
||||
);
|
||||
const endDate = new Date(
|
||||
interaction.options.getString('end-date') ??
|
||||
interaction.createdTimestamp,
|
||||
);
|
||||
endDate.setDate(endDate.getDate() + 1);
|
||||
const endDate = new Date();
|
||||
|
||||
while (currentDate <= endDate) {
|
||||
allDays.push(new Date(currentDate));
|
||||
|
|
Loading…
Reference in a new issue