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
const{ RRule, datetime }=require('rrule');constrRule=RRule.fromString("DTSTART:20240711T000000Z\nRRULE:FREQ=YEARLY;INTERVAL=1;COUNT=1")// Given this date:constdd=newDate('2024-07-11 00:00:00');// 2024-07-11T07:00:00.000Z// and this rrule datetimeconstdt=datetime(dd.getYear(),dd.getMonth(),dd.getDay());// 2024-07-11T07:00:00.000Z
If I call rRule.after(dt) i get null:
rRule.after(dt)// null
Why? As far as I can tell this is how the function is meant to be used. The expected output would be 1 year into the future, based on the recurrence string.
If I call
rRule.after(dt)
i getnull
:Why? As far as I can tell this is how the function is meant to be used. The expected output would be 1 year into the future, based on the recurrence string.
RRULE version: 2.8.1
OS: MacOS Sonoma
Timezone: Tue Oct 1 15:24:16 PDT 2024
Reporting an issue
Thank you for taking an interest in
rrule
! Please include the following inyour report:
creating a new one
are using such as the exact RRule string and dates.
rrule
you are using$ date
from the command lineof the machine showing the bug)
The text was updated successfully, but these errors were encountered: