Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use epochSecond of LocalDateTime for ZonedDateTime in Bolt
So that values of `DateTime` type (represented with `ZonedDateTime`) are not converted to UTC. Previously Bolt server converted `ZonedDateTime` to epochSecond in UTC before sending it and expected to receive value in UTC as well. This forced clients to perform a conversion from UTC and to UTC. Such conversion can be especially hard with named timezones. Now clients will receive unadjusted value which can be directly converted to `LocalDateTime` and used together with the timezone info.
- Loading branch information
Showing
2 changed files
with
62 additions
and
8 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