You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The version of rrule you are using -- 2.7.2
Your operating system -- Windows using Expo SDK 49 w/hermes enabled (react native); I've tried on Expo SDK 47 as well
Your local timezone (run $ date from the command line
of the machine showing the bug) -- Monday, October 30, 2023 4:10:52 PM
Has anyone been able to use rrule successfully with Hermes as the JS engine? I am unable to use rrule.between at all (my program hangs) and when using rrule.after, I always get an invalid NaN date.
Code sample
cosnt rrule = "DTSTART;TZID=America/Los_Angeles:20231101T160000
RRULE:FREQ=WEEKLY;BYDAY=WE"
const rule = rrulestr(rrule);
const start = new Date("2023-10-30");
const end = new Date(start);
end.setDate(start.getDate() + 14)
const afterDate = rule.after(new Date(startDate));
const between = rule.between(new Date(start, end);
Expected output:
11/1 and 11/8 instances of the recurring series
Actual output:
Either an invalid date when using rrule.after or program hangs for rrule.between
I believe this is due to the stricter parsing of dates that Hermes uses as per #579 but I'm wondering if there's any workarounds.
The text was updated successfully, but these errors were encountered:
Reporting an issue
The version of rrule you are using -- 2.7.2
Your operating system -- Windows using Expo SDK 49 w/hermes enabled (react native); I've tried on Expo SDK 47 as well
Your local timezone (run $ date from the command line
of the machine showing the bug) -- Monday, October 30, 2023 4:10:52 PM
Has anyone been able to use rrule successfully with Hermes as the JS engine? I am unable to use
rrule.between
at all (my program hangs) and when usingrrule.after
, I always get an invalid NaN date.Code sample
Expected output:
11/1 and 11/8 instances of the recurring series
Actual output:
Either an invalid date when using
rrule.after
or program hangs forrrule.between
I believe this is due to the stricter parsing of dates that Hermes uses as per #579 but I'm wondering if there's any workarounds.
The text was updated successfully, but these errors were encountered: