Skip to content

Commit

Permalink
fix timezone for signatories
Browse files Browse the repository at this point in the history
  • Loading branch information
celineung committed Feb 3, 2025
1 parent b095847 commit 20711a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shared/src/schedule/ScheduleUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,8 @@ export const isSundayInSchedule = (complexSchedule: DailyScheduleDto[]) => {
const sunday = 0;
return complexSchedule.some(
(week) =>
getDay(parseISO(week.date)) === sunday && week.timePeriods.length > 0,
getDay(convertLocaleDateToUtcTimezoneDate(parseISO(week.date))) ===
sunday && week.timePeriods.length > 0,
);
};

Expand Down

0 comments on commit 20711a7

Please sign in to comment.