We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f42771c + 51382e6 commit fe12955Copy full SHA for fe12955
src/Date/dateUtils.tsx
@@ -12,7 +12,7 @@ export function showWeekDay(
12
}
13
14
export function dateToUnix(d: Date): number {
15
- return Math.round(d.getTime() / 1000)
+ return Math.trunc(d.getTime() / 1000)
16
17
18
export function addMonths(date: Date, count: number) {
0 commit comments