From 6ea1beb5797305e5f34c009c0d5f0d740a8e3115 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Fri, 15 Nov 2024 16:26:02 +0700 Subject: [PATCH] Update index.js --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 33455d1..d8e0f0d 100644 --- a/index.js +++ b/index.js @@ -62,7 +62,7 @@ export default function prettyMilliseconds(milliseconds, options) { const days = BigInt(parsed.days); if (options.hideYearAndDays) { - add((BigInt(days) * BigInt(24)) + BigInt(parsed.hours), 'hour', 'h'); + add((BigInt(days) * 24n) + BigInt(parsed.hours), 'hour', 'h'); } else { if (options.hideYear) { add(days, 'day', 'd');