Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix month and year adjustment wrapping issue.
Month and year adjustments introduced in 5.7 had a bug where adjusting the month to one where the target date doesn't exist caused the day to roll over into the following month (ex: May 31st - 1 month became May 1st instead of April 30th) and similarily with leapday year adjustments (Feb 29th, 2016 + 1 year), this was fixed to adjust to the last day of the correct month instead of rolling over into the next month.
- Loading branch information
Showing
2 changed files
with
47 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters