From 38b1e14b5c5958deeab4638ca7bbbe22d55a5224 Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Tue, 14 Nov 2023 22:27:08 +0200 Subject: [PATCH] Fix overtime duration constructor --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 853a76e..a2129da 100644 --- a/src/main.ts +++ b/src/main.ts @@ -131,7 +131,7 @@ const main = async () => { log( 'You worked', chalk.green( - formatDuration(dayjs.duration({ minutes: Math.round(workLeftMinutes * -1) })), + formatDuration(dayjs.duration(Math.round(workLeftMinutes * -1), 'minutes')), 'overtime today', ), );