diff --git a/src/Date/dateUtils.tsx b/src/Date/dateUtils.tsx index 22bec99a..c4a59ce1 100644 --- a/src/Date/dateUtils.tsx +++ b/src/Date/dateUtils.tsx @@ -116,9 +116,9 @@ export function areDatesOnSameDay(a: Date, b?: Date | null | undefined) { } return ( - a.getUTCFullYear() === b.getUTCFullYear() && - a.getUTCMonth() === b.getUTCMonth() && - a.getUTCDate() === b.getUTCDate() + a.getFullYear() === b.getFullYear() && + a.getMonth() === b.getMonth() && + a.getDate() === b.getDate() ) }