diff --git a/src/Date/dateUtils.tsx b/src/Date/dateUtils.tsx index 34e0dc7..5356889 100644 --- a/src/Date/dateUtils.tsx +++ b/src/Date/dateUtils.tsx @@ -12,7 +12,7 @@ export function showWeekDay( } export function dateToUnix(d: Date): number { - return Math.round(d.getTime() / 1000) + return Math.trunc(d.getTime() / 1000) } export function addMonths(date: Date, count: number) {