Skip to content

Commit 6a0b4d6

Browse files
author
Schmidely Stéphane
committed
Format duration to HH:mm
1 parent f6457fb commit 6a0b4d6

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/utils/commands/export/utils.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,13 @@ export default class ExportUtils {
3232
return {
3333
start: startDate.format(formatDatetime),
3434
end: endDate.format(formatDatetime),
35-
duration: 'FIXME duration method format HH:mm:'
35+
duration: moment({
36+
hour: duration.hours(),
37+
minute: duration.minutes()
38+
}).format('HH:mm'),
3639
project,
3740
description
3841
}
39-
4042
}
4143

4244
/**

0 commit comments

Comments
 (0)