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

Y2K38 Bug: from_time_t is unnecessarily forcing 32-bit seconds #209

Closed jrnphd closed 2 years ago

jrnphd commented 2 years ago

The bug reported in https://github.com/boostorg/date_time/issues/87 is still present in boost version 1.79.0

The fix is trivial:

`--- boost/date_time/posix_time/conversion.hpp +++ boost/date_time/posix_time/conversion.hpp @@ -26,7 +26,7 @@ inline ptime from_time_t(std::time_t t) {

jeking3 commented 2 years ago

This is fixed by #80 which did not make it into Boost 1.79 - it will be in Boost 1.80