Boost C++ Libraries: Ticket #8450: Missing casts in c_local_time_adjustor.hpp lead to year 2038 problem https://svn.boost.org/trac10/ticket/8450 <p> The duration_rep_type, hour_type and min_type values are not cast to std::time_t, so if they are 32-bit and std::time_t is 64-bit, std::time_t t2 becomes negative for dates after year 2038 and c_time::localtime throws an exception. </p> <p> With the casts to std::time_t in the attached patch, no exception is thrown. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8450 Trac 1.4.3 raad@… Tue, 16 Apr 2013 13:50:16 GMT attachment set https://svn.boost.org/trac10/ticket/8450 https://svn.boost.org/trac10/ticket/8450 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">c_local_time_adjustor.hpp.patch</span> </li> </ul> <p> Patch that fixes the problem </p> Ticket James E. King, III Thu, 18 Jan 2018 14:04:42 GMT owner, status, milestone changed https://svn.boost.org/trac10/ticket/8450#comment:1 https://svn.boost.org/trac10/ticket/8450#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">az_sw_dude</span> to <span class="trac-author">James E. King, III</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.67.0</span> </li> </ul> <p> This was resolved in the fix for <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/11142" title="#11142: Bugs: boost::date_time::period_parser::delimiter_strings setter doesn't set ... (closed: fixed)">#11142</a>: </p> <p> <a class="ext-link" href="https://github.com/boostorg/date_time/commit/18b6ca816067cd143954bfb94f42eb29a1637a45#diff-b30985870682449169eb765b8e032ef1R51"><span class="icon">​</span>https://github.com/boostorg/date_time/commit/18b6ca816067cd143954bfb94f42eb29a1637a45#diff-b30985870682449169eb765b8e032ef1R51</a> </p> Ticket James E. King, III Sun, 28 Jan 2018 16:23:48 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/8450#comment:2 https://svn.boost.org/trac10/ticket/8450#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Fix merged to master; resolved. </p> Ticket