Skip to content

Commit

Permalink
fix: calculating the difference in days is not correct (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmouk authored Jun 20, 2024
1 parent dd99d00 commit 9d4849f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const TimeEntryList = ({ date, timeEntries }: Props) => {
new Intl.RelativeTimeFormat(locale, {
numeric: "auto",
}).format(
differenceInDays(startOfDay(new Date()), startOfDay(date)),
differenceInDays(startOfDay(date), startOfDay(new Date())),
"day",
),
);
Expand Down

0 comments on commit 9d4849f

Please sign in to comment.