Periodic week in a week range -> getNextChange() not work's correctly #409
Labels
status: needs owner
This issue is tentatively accepted pending a volunteer committed to its implementation.
type: bug
A confirmed report of unexpected behavior.
Good Morning,
for example I have the following osm string:
2021 week 30-52/5 Mo-Fr 07:00-15:30
.The open and closed state works fine! But if I call
getNextChange()
without arguments the wrong timestamp will be returned (It's not the next one, it's skipping a few).I think the problem is caused by period >= 5. All numbers < 5 and > 1 work's perfectly.
It is reproducible with the following example or alternatively with the online tool (link of example with my parameters)
Actual result:
Mon Dec 13 2021 07:00:00 GMT+0100 (Mitteleuropäische Normalzeit)
Expected: result
Mon Aug 30 2021 07:00:00 GMT+0100 (Mitteleuropäische Normalzeit)
Is that a known limitation or is it a bug?
Thank you!
The text was updated successfully, but these errors were encountered: