แก้ setEnddate ไม่ตรง
This commit is contained in:
parent
46be74c2fd
commit
26bd9eeddc
2 changed files with 6 additions and 0 deletions
|
|
@ -14,6 +14,7 @@
|
|||
if (endDate) {
|
||||
const today = new Date();
|
||||
const endDateDate = new Date(endDate);
|
||||
endDateDate.setDate(endDateDate.getDate() + 1);
|
||||
return endDateDate.getTime() < today.getTime();
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue