HomePhabricator

Fix RRULE bugs with week numbers for leading and trailing partial weeks

Description

Fix RRULE bugs with week numbers for leading and trailing partial weeks

Summary:
Ref T10747. I only got this partially right:

  • When the last week of the year has less than 4 days, it's counted as the first week of the next year.
  • When the first week of the year has less than 4 days, it's counted as the last week of the prior year.

These rules are sort of crazy, but they work now.

Test Plan: Unit tests now pass.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10747

Differential Revision: https://secure.phabricator.com/D16611

Details

Provenance
epriestleyAuthored on Sep 28 2016, 12:06 AM
epriestleyPushed on Sep 28 2016, 12:35 PM
Reviewer
chad
Differential Revision
D16611: Fix RRULE bugs with week numbers for leading and trailing partial weeks
Parents
rPHU9db0dd4fe2fd: Fix some RRULE bugs with BYWEEKNO
Branches
Unknown
Tags
Unknown
Tasks
T10747: Import and export ICS from Calendar
Build Status
Buildable 13890
Build 17980: Run Core Tests