Skip to content

Commit dc217e4

Browse files
authored
Merge pull request #403 from web-ridge/revert-perf-fix-temporarily
revert: performance fix for multiple ios until better solution found
2 parents 0b2d16f + 0cf4f75 commit dc217e4

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.getUTCFullYear() === b.getUTCFullYear() &&
120-
a.getUTCMonth() === b.getUTCMonth() &&
121-
a.getUTCDate() === b.getUTCDate()
119+
a.getFullYear() === b.getFullYear() &&
120+
a.getMonth() === b.getMonth() &&
121+
a.getDate() === b.getDate()
122122
)
123123
}
124124

0 commit comments

Comments
 (0)