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)
Tue, Mar 19, 7:50 PM
Unknown Object (File)
Tue, Mar 12, 11:23 AM
Unknown Object (File)
Feb 16 2024, 1:33 AM
Unknown Object (File)
Feb 7 2024, 5:51 AM
Unknown Object (File)
Feb 3 2024, 12:06 PM
Unknown Object (File)
Jan 24 2024, 1:44 PM
Unknown Object (File)
Jan 24 2024, 1:44 PM
Unknown Object (File)
Jan 24 2024, 1:44 PM
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.