Ticket #1674: boost_date_time_date_formatting_hpp.patch
File boost_date_time_date_formatting_hpp.patch, 595 bytes (added by , 15 years ago) |
---|
-
boost/date_time/date_formatting.hpp
old new 79 79 { 80 80 typedef typename ymd_type::month_type month_type; 81 81 std::basic_ostringstream<charT> ss; 82 83 // Temporarily switch to classic locale to prevent possible formatting 84 // of year with comma or other character (for example 2,008). 85 ss.imbue(std::locale::classic()); 82 86 ss << ymd.year; 87 ss.imbue(std::locale::locale()); 88 83 89 if (format_type::has_date_sep_chars()) { 84 90 ss << format_type::month_sep_char(); 85 91 }