Skip to content

Commit d07ef26

Browse files
author
Vikas Agarwal
committed
One possible fix for wrong difference between first and second milestone on activating a phase
1 parent 2ee0e9d commit d07ef26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/projects/actions/project.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ export function createProjectPhaseAndProduct(project, projectTemplate, status =
320320
if (endDate) {
321321
param['endDate'] = endDate.format('YYYY-MM-DD')
322322
}
323-
console.log(param, 'param')
323+
324324
return createProjectPhase(project.id, param).then((phase) => {
325325
return createPhaseProduct(project.id, phase.id, {
326326
name: projectTemplate.name,
@@ -421,7 +421,7 @@ export function updatePhase(projectId, phaseId, updatedProps, phaseIndex) {
421421
timeline.id,
422422
{
423423
name: timeline.name,
424-
startDate: updatedProps.startDate.format(),
424+
startDate: updatedProps.startDate.format('YYYY-MM-DD'),
425425
reference: timeline.reference,
426426
referenceId: timeline.referenceId,
427427
}

0 commit comments

Comments
 (0)