Page MenuHomePhabricator

Fix an RRULE bug with day cursors and skipped months
ClosedPublic

Authored by epriestley on Sep 28 2016, 2:32 PM.
Tags
None
Referenced Files
F19543058: D16619.id40010.diff
Thu, Jan 22, 2:43 PM
F19505429: D16619.diff
Fri, Jan 9, 11:36 AM
F19304610: D16619.diff
Dec 24 2025, 1:28 PM
F19074064: D16619.diff
Dec 1 2025, 4:10 AM
F19073923: D16619.id40010.diff
Dec 1 2025, 3:34 AM
F19073710: D16619.id40021.diff
Dec 1 2025, 2:47 AM
F19072844: D16619.diff
Nov 30 2025, 11:41 PM
F19055617: D16619.diff
Nov 28 2025, 5:47 PM
Subscribers
None

Details

Summary

Ref T10747. This rule wasn't quite correct, and got some things like BYMONTH=1,3;INTERVAL=9 wrong.

Instead of resetting the day cursor to 1, we need to move it forward through time in INTERVAL jumps until we get to the next candidate month.

Test Plan

Unit tests now pass.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Fix an RRULE bug with day cursors and skipped months.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Sep 28 2016, 6:24 PM
This revision was automatically updated to reflect the committed changes.