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

Fix #233: use microsec_clock::universal_time() directly in local_time(time_zone_ptr) #234

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

boimart1
Copy link

Fixes #233.

Calling microsec_clock::universal_time() directly avoids the issue where the second could change between the calls to second_clock::local_time() and second_clock::universal_time().

@boimart1 boimart1 changed the title Fix #233: use microsec_clock::universal_time() directly Fix #233: use microsec_clock::universal_time() directly in local_time(time_zone_ptr) Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

local_microsec_clock::local_time(time_zone_ptr) occasionally returns an incorrect time
1 participant