id summary reporter owner description type status milestone component version severity resolution keywords cc 3876 %T format specifier with local_time_facet crashes with MSVC 9 Claudio Bley az_sw_dude "The following program crashes with MSVC9 when trying to write the local_date_time to the stringstream: {{{ #!cpp #include #include #include #include int main() { using namespace boost::posix_time; using namespace boost::local_time; time_zone_ptr utc; local_date_time now(microsec_clock::universal_time(), utc); local_time_facet* output_facet = new local_time_facet(); local_time_input_facet* input_facet = new local_time_input_facet(); std::stringstream ss; ss.imbue(std::locale(std::locale::classic(), output_facet)); ss.imbue(std::locale(ss.getloc(), input_facet)); // http://www.boost.org/doc/libs/1_41_0/doc/html/date_time/date_time_io.html#date_time.format_flags // %T ! The time in 24-hour notation (%H:%M:%S) output_facet->format(""%T""); ss << now; // crash in _Strftime_l } }}} With MinGW 4.4.0 it just ignores the %T format specifier. What's the deal with %T?" Bugs closed Boost 1.42.0 date_time Boost 1.41.0 Problem fixed