Rrule day is incorrectly calculated as 1 day greater

Viewed 18

I am working on a room booking app in which I am using rrule to calculate scheduled days. For recurring events this is what my rrule looks like :

rrule : {
endDate: Date Wed Oct 12 2022 00:00:00 GMT+0530 (India Standard Time),
endTime: "08:30",
startDate: Date Mon Sep 26 2022 00:00:00 GMT+0530 (India Standard Time),
startTime: "01:00",
byWeekDay: [RRULE.MO,RRULE.TU],
tzid: "Asia/Tokyo"
}

After rrule.all() days selected is Tuesday and Wednesday. I am not sure where am I going wrong. Can anyone please help.

0 Answers
Related