Boost C++ Libraries: Ticket #9276: output from a system_clock::time_point get a time_point that is one day later than expected https://svn.boost.org/trac10/ticket/9276 <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/9276 Trac 1.4.3 viboes Wed, 23 Oct 2013 06:21:10 GMT summary changed https://svn.boost.org/trac10/ticket/9276#comment:1 https://svn.boost.org/trac10/ticket/9276#comment:1 <ul> <li><strong>summary</strong> <span class="trac-field-old">input from a system_clock::time_point get a time_point that is one day later than expected</span> → <span class="trac-field-new">output from a system_clock::time_point get a time_point that is one day later than expected</span> </li> </ul> Ticket viboes Wed, 23 Oct 2013 06:22:52 GMT status changed https://svn.boost.org/trac10/ticket/9276#comment:2 https://svn.boost.org/trac10/ticket/9276#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket viboes Wed, 23 Oct 2013 23:01:29 GMT <link>https://svn.boost.org/trac10/ticket/9276#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9276#comment:3</guid> <description> <p> Committed revision <a class="changeset" href="https://svn.boost.org/trac10/changeset/86410" title="Thread: Try to fix system_clock::time_point output on windows.">[86410]</a><a class="changeset" href="https://svn.boost.org/trac10/changeset/86413" title="Chrono: avoid the use of gmtime_r on windows test to avoid compiler ...">[86413]</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Wed, 23 Oct 2013 23:01:42 GMT</pubDate> <title>milestone changed https://svn.boost.org/trac10/ticket/9276#comment:4 https://svn.boost.org/trac10/ticket/9276#comment:4 <ul> <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> Ticket viboes Sat, 26 Oct 2013 12:37:29 GMT <link>https://svn.boost.org/trac10/ticket/9276#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9276#comment:5</guid> <description> <p> Merged to release <a class="changeset" href="https://svn.boost.org/trac10/changeset/86448" title="Chrono: merge fixes for #9274, #9276.">[86448]</a><a class="changeset" href="https://svn.boost.org/trac10/changeset/86491" title="Chrono: merge timepoint io improvements.">[86491]</a><a class="changeset" href="https://svn.boost.org/trac10/changeset/86492" title="Chrono: merge timepoint io improvements.">[86492]</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sat, 26 Oct 2013 12:37:48 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/9276#comment:6 https://svn.boost.org/trac10/ticket/9276#comment:6 <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> Ticket