Skip to content

Commit

Permalink
Resolve times being formatted like 05:3.22
Browse files Browse the repository at this point in the history
Use date formatting
  • Loading branch information
SapiensAnatis committed Sep 6, 2024
1 parent d6bf3ae commit 933a79b
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@
table.column({
accessor: ({ time }) => time,
cell: ({ value: time }) => {
const minutes = `${Math.floor(time / 60)}`.padStart(2, '0');
const seconds = `${time % 60}`.padStart(2, '0').slice(0, 4);
return `${minutes}:${seconds}`;
const date = new Date(time * 1000);
return date.toISOString().slice(14, -3);
},
header: 'Clear Time'
}),
Expand Down

0 comments on commit 933a79b

Please sign in to comment.