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
Unknown Object (File)
Sun, Apr 21, 12:14 AM
Unknown Object (File)
Fri, Apr 19, 5:22 PM
Unknown Object (File)
Wed, Apr 17, 5:23 AM
Unknown Object (File)
Fri, Apr 12, 2:33 PM
Unknown Object (File)
Sun, Apr 7, 1:08 PM
Unknown Object (File)
Tue, Apr 2, 1:46 AM
Unknown Object (File)
Sat, Mar 30, 2:55 PM
Unknown Object (File)
Sat, Mar 30, 10:04 AM
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.