Incorrect Next Sync date calculation in weekly Sync Plan
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1302098
Description of problem:
Setting the Start Date for some weekly Sync Plan schedules results in an incorrect date calculation that causes the Next Sync date to skip a week.
Issue appears to be linked at at one specific date.
Version-Release number of selected component (if applicable):
Satellite 6.1.5 at least
How reproducible: Appears to be every time
Steps to Reproduce:
1. Create weekly Sync Plan
2. Set Start Date to Jan 22, 2016 (may be date specific)
3. Next Sync date should show Feb 5, 2016 (skipping Jan 29, 2016)
Next Sync date reports Feb 5, 2016
Next Sync should be Jan 29, 2016
Customer reported this in their environment and it was also reproduced in house with the start date Jan 22, 2016. Using the start date Jan 25, 2016 /did not/ reproduce the error.