-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
duration: fix negative duration math
In Go, negative numbers mod positive numbers returns negative numbers (e.g. -5 % 12 is -7), which is the root of the bug. Release note (bug fix): Previously, subtracting months from a timestamp/date/timestamptz whose date value is greater than 28 could subtract a further year off. This has now be rectified.
- Loading branch information
Showing
2 changed files
with
103 additions
and
5 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