boostorg / date_time

Boost.org date_time module
http://boost.org/libs/date_time
Boost Software License 1.0
67 stars 95 forks source link

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

Open boimart1 opened 1 year ago

boimart1 commented 1 year ago

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().