|
|
@@ -29,7 +29,7 @@ import React, { useCallback, useEffect, useMemo, useState } from "react"; |
|
|
|
import { useFormContext } from "react-hook-form"; |
|
|
|
import { useTranslation } from "react-i18next"; |
|
|
|
import StyledDataGrid from "../StyledDataGrid"; |
|
|
|
import { moneyFormatter } from "@/app/utils/formatUtil"; |
|
|
|
import { INPUT_DATE_FORMAT, moneyFormatter } from "@/app/utils/formatUtil"; |
|
|
|
import isDate from "lodash/isDate"; |
|
|
|
|
|
|
|
interface Props { |
|
|
@@ -206,7 +206,7 @@ const MilestoneSection: React.FC<Props> = ({ taskGroupId }) => { |
|
|
|
description: p.description!, |
|
|
|
id: p.id!, |
|
|
|
amount: p.amount!, |
|
|
|
date: dayjs(p.date!).toISOString(), |
|
|
|
date: dayjs(p.date!).format(INPUT_DATE_FORMAT), |
|
|
|
})), |
|
|
|
}, |
|
|
|
}); |
|
|
@@ -245,7 +245,7 @@ const MilestoneSection: React.FC<Props> = ({ taskGroupId }) => { |
|
|
|
...milestones, |
|
|
|
[taskGroupId]: { |
|
|
|
...milestones[taskGroupId], |
|
|
|
startDate: date.toISOString(), |
|
|
|
startDate: date.format(INPUT_DATE_FORMAT), |
|
|
|
}, |
|
|
|
}); |
|
|
|
}} |
|
|
@@ -264,7 +264,7 @@ const MilestoneSection: React.FC<Props> = ({ taskGroupId }) => { |
|
|
|
...milestones, |
|
|
|
[taskGroupId]: { |
|
|
|
...milestones[taskGroupId], |
|
|
|
endDate: date.toISOString(), |
|
|
|
endDate: date.format(INPUT_DATE_FORMAT), |
|
|
|
}, |
|
|
|
}); |
|
|
|
}} |
|
|
|