Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Decimal interval creates an infinite loop #602

Open
reekoz opened this issue Oct 24, 2023 · 2 comments
Open

[bug] Decimal interval creates an infinite loop #602

reekoz opened this issue Oct 24, 2023 · 2 comments

Comments

@reekoz
Copy link

reekoz commented Oct 24, 2023

Minimal repro script:

const { rrulestr } = require("rrule")
const from = new Date("2023-10-24T08:32:21.533Z")
const to = new Date("2023-11-01T08:32:21.533Z")
const rrule = rrulestr('DTSTART:20231003T040000Z\nRRULE:FREQ=DAILY;INTERVAL=0.5')
const dates = rrule.between(from, to, true)
// This line is never reached
console.log('dates', dates, '\n\n')
@reekoz reekoz changed the title Decimal interval creates an infinite loop [bug] Decimal interval creates an infinite loop Oct 24, 2023
@robertsLando
Copy link

The same can be reproduced from: http://jkbrzt.github.io/rrule/ by selecting RRULE String in tab and set a decimal interval. The page stops responding

2023-10-24_11-18

@davidgoli
Copy link
Collaborator

Decimal intervals aren't supported in this library. Would accept a PR that validates interval format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants