Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix compare for dates with unusual number of hours
Thanks to DST, some dates in a year may have more or less than 24 hours. We need to change the implementation of `Duration.compare` when handling such cases. The solution is to work only with years, months, weeks, and days; working with more fine-grained data (hours, minutes, etc.) might be mistaken in such cases because they may contain the assumption that all days have 24 hours. Thanks @justingrant for the solution! closes #1791 UPSTREAM_COMMIT=08bcd53860aacb95c91aa67e5c9bd14abe116229
- Loading branch information