sn: 도시침수예방사업 지정일 수정

This commit is contained in:
2026-10-01 00:26:36 +09:00
parent d1b4600392
commit 106e09a7a2
@@ -164,13 +164,11 @@ const formatLocalDateInputValue = (date: Date) => {
return `${year}-${month}-${day}`;
};
/** 지정일 기본 검색기간을 오늘까지의 최근 1년으로 생성한다. */
/** 지정일 기본 검색기간을 최초 사업자료 기준일인 2013-01-01부터 오늘까지로 생성한다. */
const createDefaultDesignationDateRange = () => {
const to = new Date();
const from = new Date(to);
from.setFullYear(from.getFullYear() - 1);
return {
dsgnYmdFrom: formatLocalDateInputValue(from),
dsgnYmdFrom: "2013-01-01",
dsgnYmdTo: formatLocalDateInputValue(to),
};
};