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
F15472802: D16605.id39977.diff
Sat, Apr 5, 4:51 PM
F15466138: D16605.diff
Thu, Apr 3, 1:56 AM
F15432269: D16605.id39995.diff
Mon, Mar 24, 5:09 PM
F15411869: D16605.id.diff
Wed, Mar 19, 10:05 AM
F15386657: D16605.id39977.diff
Mar 15 2025, 1:02 AM
F15378958: D16605.id39977.diff
Mar 13 2025, 5:49 PM
Unknown Object (File)
Mar 2 2025, 12:29 AM
Unknown Object (File)
Feb 28 2025, 8:11 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.