Skip to content

Commit

Permalink
Resolves the Milliseconds Conversion (#604)
Browse files Browse the repository at this point in the history
* removes the conversion to ms as it was already in ms

* modifies the timestamp as per the current format in fixtures
  • Loading branch information
heyrandhir authored Nov 6, 2023
1 parent 3a1faba commit 9b52392
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mock-data/taskRequests/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion utils/time/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9b52392

Please sign in to comment.