Boost C++ Libraries: Ticket #9275: system_clock::now() is given a time_point that is one day later in windows platform https://svn.boost.org/trac10/ticket/9275 <p> system_clock::now() is given a time_point that is one day later in windows platform. </p> <pre class="wiki"> Test output: teeks99tmp-win2008-32on64 - chrono - test_7868_d / msvc-10.0 Rev 86357 / Fri, 18 Oct 2013 19:43:22 +0000 Compile [2013-10-19 07:40:52 UTC]: succeed call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\vc\vcvarsall.bat" x86 &gt;nul cl /Zm800 -nologo @"C:\local\results\boost\bin.v2\libs\chrono\test\test_7868_d.test\msvc-10.0\debug\asynch-exceptions-on\test_7868.obj.rsp" test_7868.cpp C:\local\boost\boost/chrono/io/time_point_io.hpp(849) : warning C4800: 'int32_t' : forcing value to bool 'true' or 'false' (performance warning) C:\local\boost\boost/chrono/io/time_point_io.hpp(892) : warning C4996: 'localtime': This function or variable may be unsafe. Consider using localtime_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\time.inl(112) : see declaration of 'localtime' ..\libs\chrono\test\test_7868.cpp(28) : see reference to function template instantiation 'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;boost::chrono::operator &lt;&lt;&lt;char,std::char_traits&lt;char&gt;,boost::chrono::system_clock::duration&gt;(std::basic_ostream&lt;_Elem,_Traits&gt; &amp;,const boost::chrono::time_point&lt;Clock&gt; &amp;)' being compiled with [ _Elem=char, _Traits=std::char_traits&lt;char&gt;, Clock=boost::chrono::system_clock ] file C:\local\results\boost\bin.v2\libs\chrono\test\test_7868_d.test\msvc-10.0\debug\asynch-exceptions-on\test_7868_d.exe.rsp "C:\local\results\boost\bin.v2\libs\system\build\msvc-10.0\debug\asynch-exceptions-on\boost_system-vc100-gd-1_55.lib" "C:\local\results\boost\bin.v2\libs\chrono\build\msvc-10.0\debug\asynch-exceptions-on\boost_chrono-vc100-gd-1_55.lib" "C:\local\results\boost\bin.v2\libs\chrono\test\test_7868_d.test\msvc-10.0\debug\asynch-exceptions-on\test_7868.obj" Link [2013-10-19 07:40:52 UTC]: succeed call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\vc\vcvarsall.bat" x86 &gt;nul link /NOLOGO /INCREMENTAL:NO /DEBUG /MACHINE:X86 /MANIFEST /subsystem:console /out:"C:\local\results\boost\bin.v2\libs\chrono\test\test_7868_d.test\msvc-10.0\debug\asynch-exceptions-on\test_7868_d.exe" @"C:\local\results\boost\bin.v2\libs\chrono\test\test_7868_d.test\msvc-10.0\debug\asynch-exceptions-on\test_7868_d.exe.rsp" if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL% Run [2013-10-19 07:40:52 UTC]: fail A:2013-10-19 23:26:32.131400 +0000 B:2013-10-20 23:26:32.131400 +0000 ..\libs\chrono\test\test_7868.cpp(33): test 'atnow.time_since_epoch().count() == atnow2.time_since_epoch().count()' failed in function 'int __cdecl main(void)': '13821387921314000' != '13822251921314000' diff:86400000000 ..\libs\chrono\test\test_7868.cpp(37): test 'boost::chrono::duration_cast&lt;microseconds&gt;(atnow2 - atnow).count() == 0' failed in function 'int __cdecl main(void)': '86400000000' != '0' actual:2013-10-19 23:26:32 parsed:2013-10-20 23:26:32 ..\libs\chrono\test\test_7868.cpp(49): test 'formatted1.str() == formatted2.str()' failed in function 'int __cdecl main(void)': '2013-10-19 23:26:32' != '2013-10-20 23:26:32' FORMATTED actual:2013-10-19 23:26:32 parsed:2013-10-20 23:26:32 ..\libs\chrono\test\test_7868.cpp(70): test 'boost::chrono::duration_cast&lt;seconds&gt;(atnow2 - atnow).count() == 0' failed in function 'int __cdecl main(void)': '86399' != '0' 4 errors detected. EXIT STATUS: 1 </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9275 Trac 1.4.3 viboes Sun, 20 Oct 2013 18:47:42 GMT status, milestone changed https://svn.boost.org/trac10/ticket/9275#comment:1 https://svn.boost.org/trac10/ticket/9275#comment:1 <ul> <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.55.0</span> </li> </ul> <p> Committed in trunk <a class="changeset" href="https://svn.boost.org/trac10/changeset/86376" title="Chrono: fix two important issues with Boost.Chrono IO v2 on windows * ...">[86376]</a> </p> Ticket viboes Wed, 23 Oct 2013 06:22:14 GMT status changed; resolution set; milestone deleted https://svn.boost.org/trac10/ticket/9275#comment:2 https://svn.boost.org/trac10/ticket/9275#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">invalid</span> </li> <li><strong>milestone</strong> <span class="trac-field-deleted">Boost 1.55.0</span> </li> </ul> <p> now() is working correctly. This is related to <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9276" title="#9276: Bugs: output from a system_clock::time_point get a time_point that is one ... (closed: fixed)">#9276</a>. </p> Ticket