Skip to content

Commit

Permalink
Merge pull request #117 from beauraines/ls-command---currently-runnin…
Browse files Browse the repository at this point in the history
…g-shows-Invalid-Date

feat(ls): - improves ls display for running events
  • Loading branch information
beauraines authored Oct 17, 2023
2 parents a888864 + 554ed05 commit bea0855
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmds/ls.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const handler = async function (argv) {
project: projects.filter(p => p.id == element.project_id)[0]?.name,
project_id: projects.filter(p => p.id == element.project_id)[0]?.id,
start: convertUtcTime(element.start),
stop: convertUtcTime(element.stop),
stop: convertUtcTime(element.stop) == 'Invalid Date' ? 'Currently Running' : convertUtcTime(element.stop),
duration: formatDuration(element.duration * 1000),
id: element.id
}
Expand Down

0 comments on commit bea0855

Please sign in to comment.