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') ??
|
interaction.options.getString('start-date') ??
|
||||||
threadStarterMessage.createdTimestamp,
|
threadStarterMessage.createdTimestamp,
|
||||||
);
|
);
|
||||||
const endDate = new Date(
|
const endDate = new Date();
|
||||||
interaction.options.getString('end-date') ??
|
|
||||||
interaction.createdTimestamp,
|
|
||||||
);
|
|
||||||
endDate.setDate(endDate.getDate() + 1);
|
|
||||||
|
|
||||||
while (currentDate <= endDate) {
|
while (currentDate <= endDate) {
|
||||||
allDays.push(new Date(currentDate));
|
allDays.push(new Date(currentDate));
|
||||||
|
|
Loading…
Reference in a new issue