Skip to content

Commit

Permalink
Merge pull request #402 from web-ridge/ios-multiple-latency
Browse files Browse the repository at this point in the history
Fixed performance issue on ios comparing dates using multiple mode
  • Loading branch information
iM-GeeKy authored Jul 12, 2024
2 parents 3baed1c + 33147d1 commit 23fb089
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Date/dateUtils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ export function areDatesOnSameDay(a: Date, b?: Date | null | undefined) {
}

return (
a.getFullYear() === b.getFullYear() &&
a.getMonth() === b.getMonth() &&
a.getDate() === b.getDate()
a.getUTCFullYear() === b.getUTCFullYear() &&
a.getUTCMonth() === b.getUTCMonth() &&
a.getUTCDate() === b.getUTCDate()
)
}

Expand Down

0 comments on commit 23fb089

Please sign in to comment.