Page MenuHomePhabricator

Fix an RRULE issue with month days at the end of the month
ClosedPublic

Authored by epriestley on Sep 27 2016, 10:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 27, 5:30 PM
Unknown Object (File)
Wed, Apr 24, 11:57 PM
Unknown Object (File)
Fri, Apr 19, 5:21 PM
Unknown Object (File)
Thu, Apr 11, 8:14 AM
Unknown Object (File)
Fri, Apr 5, 1:28 PM
Unknown Object (File)
Fri, Mar 29, 6:30 PM
Unknown Object (File)
Mar 19 2024, 7:50 PM
Unknown Object (File)
Mar 12 2024, 11:23 AM
Subscribers
None

Details

Summary

Ref T10747. I'm porting unit tests from other implementations until I hit one that fails.

The "yearly event on Feb 29th" test failed because we assumed every month had a 29th. Instead, test if the current month has a 29th.

We were also using cursorX instead of stateX in a couple places. They often have the same value, but stateX is the correct value when they differ.

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 issue with month days at the end of the month.
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 27 2016, 10:37 PM
This revision was automatically updated to reflect the committed changes.