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)
Mon, Dec 16, 11:59 PM
Unknown Object (File)
Sat, Dec 7, 8:48 AM
Unknown Object (File)
Sat, Nov 30, 11:57 PM
Unknown Object (File)
Sat, Nov 23, 4:35 PM
Unknown Object (File)
Sat, Nov 23, 12:14 PM
Unknown Object (File)
Nov 14 2024, 3:44 AM
Unknown Object (File)
Oct 19 2024, 2:54 AM
Unknown Object (File)
Oct 16 2024, 3:32 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.