fix: [approvals] 근태신청 기간 표시에서 T 제거 (2026-03-12T14:00 → 2026-03-12 14:00)

This commit is contained in:
김보곤
2026-03-06 17:58:59 +09:00
parent f51427bcce
commit ebb10b5c47

View File

@@ -478,10 +478,11 @@ function buildLeaveBody(data) {
['유형', typeName],
];
const fmtDate = (d) => (d || '').replace('T', ' ');
if (data.start_date === data.end_date) {
rows.push(['대상일', data.start_date]);
rows.push(['대상일', fmtDate(data.start_date)]);
} else {
rows.push(['기간', data.start_date + ' ~ ' + data.end_date]);
rows.push(['기간', fmtDate(data.start_date) + ' ~ ' + fmtDate(data.end_date)]);
}
if (data.reason) {