Skip to content

Commit 962a9e1

Browse files
authored
Merge pull request #985 from jduehring/scheduling-fix
Use UTC consistently
2 parents db02d14 + 3c94a24 commit 962a9e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/slices/eventSlice.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ export const checkForConflicts = async (
994994
device: device,
995995
duration: duration.toString(),
996996
end: endDate,
997-
rrule: `FREQ=WEEKLY;BYDAY=${repeatOn.join()};BYHOUR=${startDate.getHours()};BYMINUTE=${startDate.getMinutes()}`,
997+
rrule: `FREQ=WEEKLY;BYDAY=${repeatOn.join()};BYHOUR=${startDate.getUTCHours()};BYMINUTE=${startDate.getUTCMinutes()}`,
998998
}
999999
: {
10001000
start: startDate,

0 commit comments

Comments
 (0)