--- boost/date_time/gregorian/conversion.hpp 2009-06-06 13:27:35.000000000 +0200 +++ boost/date_time/gregorian/conversion.hpp 2009-09-22 14:33:39.286816424 +0200 @@ -41,7 +41,7 @@ boost::throw_exception(std::out_of_range(s)); } - std::tm datetm = {}; // zero initialization is needed for extension members, like tm_zone + std::tm datetm = {0,0,0,0,0,0,0,0,0,0,0}; // zero initialization is needed for extension members, like tm_zone boost::gregorian::date::ymd_type ymd = d.year_month_day(); datetm.tm_year = ymd.year - 1900; datetm.tm_mon = ymd.month - 1; --- boost/date_time/posix_time/conversion.hpp 2009-06-04 10:24:49.000000000 +0200 +++ boost/date_time/posix_time/conversion.hpp 2009-09-22 14:35:37.835244718 +0200 @@ -42,7 +42,7 @@ //! Convert a time_duration to a tm structure truncating any fractional seconds and zeroing fields for date components inline std::tm to_tm(const boost::posix_time::time_duration& td) { - std::tm timetm = {}; + std::tm timetm = {0,0,0,0,0,0,0,0,0,0,0}; timetm.tm_hour = date_time::absolute_value(td.hours()); timetm.tm_min = date_time::absolute_value(td.minutes()); timetm.tm_sec = date_time::absolute_value(td.seconds());