[Bug] Over until date
nnhan0719 opened this issue · comments
RRULE:BYMONTH=6;INTERVAL=1;FREQ=YEARLY;BYDAY=+1FR;UNTIL=20240608T235959Z
Until only 2024 06 08, but result is over until and no any error:
rule = | RRule.fromString("RRULE:BYMONTH=6;INTERVAL=1;FREQ=YEARLY;BYDAY=+1FR;UNTIL=20240608T235959Z") |
---|---|
{ bymonth: 6, interval: 1, freq: RRule.YEARLY, byweekday: [RRule.FR.nth(1)], until: new Date(Date.UTC(2024, 5, 8, 23, 59, 59)) } | |
RRULE:BYMONTH=6;INTERVAL=1;FREQ=YEARLY;BYDAY=+1FR;UNTIL=20240608T235959Z | |
every June on the 1st Friday until June 8, 2024 | |
1Fri,07Jun202420:07:01GMT | 1 |
1 | Fri, |
rule =
RRule.fromString("RRULE:BYMONTH=6;INTERVAL=1;FREQ=YEARLY;BYDAY=+1FR;UNTIL=20240608T235959Z")
rule.origOptions
{
bymonth: 6,
interval: 1,
freq: RRule.YEARLY,
byweekday: [RRule.FR.nth(1)],
until: new Date(Date.UTC(2024, 5, 8, 23, 59, 59))
}
rule.toString()
RRULE:BYMONTH=6;INTERVAL=1;FREQ=YEARLY;BYDAY=+1FR;UNTIL=20240608T235959Z
rule.toText() every June on the 1st Friday until June 8, 2024
rule.all()
1 Fri, 07 Jun 2024 20:07:01 GMT