Change End Date

This commit is contained in:
Michael 2024-12-30 17:44:29 -06:00
parent da0accc304
commit a153cf39e4

View file

@ -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));