Homec4science

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

Authored by epriestley <git@epriestley.com> on Sep 28 2016, 02:06.

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

Committed
epriestley <git@epriestley.com>Sep 28 2016, 14:35
Pushed
aubortMar 17 2017, 12:03
Parents
rPHU9db0dd4fe2fd: Fix some RRULE bugs with BYWEEKNO
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHU51a1ac172a35: Fix RRULE bugs with week numbers for leading and trailing partial weeks (authored by epriestley <git@epriestley.com>).Sep 28 2016, 14:35