Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timezone conversions based on seconds #10563

Closed
wants to merge 1 commit into from

Conversation

pedroerp
Copy link
Contributor

@pedroerp pedroerp commented Jul 25, 2024

Summary:
Timezone conversions were done based on a timepoint,
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 may overflow, but not exporting
to time_point which is what is needed for timezone conversions.

Part of #10101

Reviewed By: mbasmanova

Differential Revision: D60189530

Summary:
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: mbasmanova

Differential Revision: D60189530
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 25, 2024
Copy link

netlify bot commented Jul 25, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 1ef50c2
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/66a19c082f746e00082811dc

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D60189530

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in eceddff.

Copy link

Conbench analyzed the 1 benchmark run on commit eceddff0.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants