fix(calculateDurationYmd):moment(endDate).startOf("day").add(1, "day");

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-01-22 16:47:52 +07:00
parent 8e1e5044c7
commit f44076670f
2 changed files with 3 additions and 1 deletions

View file

@ -374,6 +374,8 @@ function changeStartDate(type: string) {
const endDate = new Date(formBody?.endDate);
if (startDate > endDate) {
formBody.endDate = null;
} else {
formBody.totalPeriod = calculateDurationYmd(startDate, endDate);
}
}
break;