-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Timezone conversions based on seconds (#10563)
Summary: Pull Request resolved: #10563 Timezone conversions were done based on a timepoint<milliseconds>, which is unecessary, adds possibility for overflow, and requires us to floor it after the conversion. Simplifying the code and adding some more tests. Now, only exporting a time_point<millisecond> may overflow, but not exporting to time_point<second> which is what is needed for timezone conversions. Reviewed By: kagamiori, mbasmanova Differential Revision: D60189530 fbshipit-source-id: 0310fdabeb6441e9f341c140e2ee2e438a20080c
- Loading branch information
1 parent
6d33468
commit eceddff
Showing
5 changed files
with
56 additions
and
32 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
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