Skip to content

Commit

Permalink
[FIX] update the date format for create timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
catherineeangel committed May 7, 2024
1 parent 72e282d commit 0829184
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ export const CreateTimelineDialog: React.FC<CreateTimelineDialogProps> = ({
return
}
data.task_step = taskStepId
data.start_datetime = startDate.format('YYYY-MM-DD HH:MM')
data.end_datetime = endDate.format('YYYY-MM-DD HH:MM')
data.start_datetime = startDate.format('YYYY-MM-DD HH:mmZ')
data.end_datetime = endDate.format('YYYY-MM-DD HH:mmZ')
createTimeline(data)
}
useEffect(() => {
Expand All @@ -78,9 +78,9 @@ export const CreateTimelineDialog: React.FC<CreateTimelineDialogProps> = ({
onClose()
}
if (startDate)
setValue('start_datetime', startDate.format('YYYY-MM-DD HH:MM'))
setValue('start_datetime', startDate.format('YYYY-MM-DD HH:mmZ'))

if (endDate) setValue('end_datetime', endDate.format('YYYY-MM-DD HH:MM'))
if (endDate) setValue('end_datetime', endDate.format('YYYY-MM-DD HH:mmZ'))
}, [isSuccess, startDate, endDate])

return (
Expand Down

0 comments on commit 0829184

Please sign in to comment.