From 8ac794ac7b61b6b487b5d24662024a64bfc36492 Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Sat, 11 Nov 2023 18:07:51 +0200 Subject: [PATCH] Use format function --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index f35ff96..8820ecc 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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);