diff --git a/mock-data/taskRequests/index.js b/mock-data/taskRequests/index.js index 175a7a78..d0b25e07 100644 --- a/mock-data/taskRequests/index.js +++ b/mock-data/taskRequests/index.js @@ -56,8 +56,8 @@ const individualTaskReqDetail = { approvedTo: 'SooJK37gzjIZfFNH0tlL', users: [ { - proposedStartDate: 1698684354, - proposedDeadline: 1699142400, + proposedStartDate: 1698684354000, + proposedDeadline: 1699142400000, description: 'code change 3 days , testing - 2 days. total - 5 days', userId: 'SooJK37gzjIZfFNH0tlL', status: 'APPROVED', diff --git a/utils/time/index.js b/utils/time/index.js index e1f120fe..57fadaa2 100644 --- a/utils/time/index.js +++ b/utils/time/index.js @@ -2,7 +2,7 @@ function getHumanReadableDate(timeStamp) { if (typeof timeStamp !== 'number') { return 'N/A'; } - const date = new Date(timeStamp * 1000); + const date = new Date(timeStamp); const year = date.getFullYear(); const month = date.getMonth() + 1;