แก้ 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) {
|
if (endDate) {
|
||||||
const today = new Date();
|
const today = new Date();
|
||||||
const endDateDate = new Date(endDate);
|
const endDateDate = new Date(endDate);
|
||||||
|
endDateDate.setDate(endDateDate.getDate() + 1);
|
||||||
return endDateDate.getTime() < today.getTime();
|
return endDateDate.getTime() < today.getTime();
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
5
package-lock.json
generated
Normal file
5
package-lock.json
generated
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
"name": "BMA-EHR-RECRUIT-QUALIFYING-EXAM",
|
||||||
|
"lockfileVersion": 3,
|
||||||
|
"requires": true,
|
||||||
|
"packages": {}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue