Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus authored Nov 15, 2024
1 parent 3e55e0a commit 6ea1beb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 6ea1beb

Please sign in to comment.