Skip to content

Commit

Permalink
fix: calculating the difference in days is not correct (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmouk authored Jun 19, 2024
1 parent b8d695f commit dd99d00
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const TimeEntryTreeItem = ({
new Intl.RelativeTimeFormat(locale, {
numeric: "auto",
}).format(
differenceInDays(startOfDay(now), startOfDay(startedAt)),
differenceInDays(startOfDay(startedAt), startOfDay(now)),
"day",
),
)
Expand Down

0 comments on commit dd99d00

Please sign in to comment.