diff --git a/src/utils/formattedTime.ts b/src/utils/formattedTime.ts index 7e9f673a42c..f594203713e 100644 --- a/src/utils/formattedTime.ts +++ b/src/utils/formattedTime.ts @@ -116,7 +116,7 @@ function getDiffInDays(dateOrTimestamp: Date | number): number { date.setHours(0, 0, 0, 0) currentDate.setHours(0, 0, 0, 0) - return Math.ceil((+date - +currentDate) / ONE_DAY_IN_MS) + return Math.round((+date - +currentDate) / ONE_DAY_IN_MS) } /**