-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix rounding in ZonedDateTime.toString()
The rounding in ZonedDateTime.toString() only affects time units. Unlike the rounding in ZonedDateTime.round(), it should be exact time rounding, so that the actual difference between the raw and rounded exact times is not affected by time zone offset shifts. This is the same outcome as in round() (and we add a test for both round() and toString() to prove it) but in toString() it can be implemented with fewer observable calls since we don't need to be able to round to units that are affected by DST shifts. See: #569
- Loading branch information
Showing
3 changed files
with
36 additions
and
36 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
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