boost::local_time::local_date_time l_datetime(boost::date_time::not_a_date_time);
std::istringstream l_datestream("Sat Aug 06 10:52:26 +0000 2011");
l_datestream.imbue( std::locale( std::locale::classic(), new boost::local_time::local_time_input_facet("%a %b %d %H:%M:%S %q %Y")) );
l_datestream >> l_datetime;
But the l_datetime is always set to "not a date time". I think the parameter within the input facet are correct, so I don't understand
why the string is not be parsed. Can anyone help me please to create a working solution?