Skip to content

Commit 23fb089

Browse files
authored
Merge pull request #402 from web-ridge/ios-multiple-latency
Fixed performance issue on ios comparing dates using multiple mode
2 parents 3baed1c + 33147d1 commit 23fb089

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Date/dateUtils.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ export function areDatesOnSameDay(a: Date, b?: Date | null | undefined) {
116116
}
117117

118118
return (
119-
a.getFullYear() === b.getFullYear() &&
120-
a.getMonth() === b.getMonth() &&
121-
a.getDate() === b.getDate()
119+
a.getUTCFullYear() === b.getUTCFullYear() &&
120+
a.getUTCMonth() === b.getUTCMonth() &&
121+
a.getUTCDate() === b.getUTCDate()
122122
)
123123
}
124124

0 commit comments

Comments
 (0)