Use format function
This commit is contained in:
parent
13443a4d26
commit
8ac794ac7b
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ const main = async () => {
|
|||
let workDayDuration: Duration | undefined = undefined;
|
||||
|
||||
const durationAnswer = await rl.question(
|
||||
`How long is your work day today, excluding the lunch break? [${defaultWorkDayDuration.format('HH:mm')}] `,
|
||||
`How long is your work day today, excluding the lunch break? [${formatDuration(defaultWorkDayDuration)}] `,
|
||||
);
|
||||
if (durationAnswer !== '') {
|
||||
workDayDuration = parseDuration(durationAnswer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue