Boost C++ Libraries: Ticket #9034: Timezone (%Q) is ignored in time_input_facet / local_time_input_facet https://svn.boost.org/trac10/ticket/9034 <p> I'm trying to parse an extended ISO 8601 date-time string to ptime or local_time using the following code: </p> <pre class="wiki"> boost::local_time::wlocal_time_input_facet *inputFacet = new boost::local_time::wlocal_time_input_facet(); inputFacet-&gt;set_iso_extended_format(); std::wstringstream ss; ss.imbue(std::locale(ss.getloc(), inputFacet)); ss.str(inputString); boost::local_time::local_date_time time(boost::local_time::not_a_date_time); ss &gt;&gt; time; </pre><p> This works for "2013-08-20T17:14:21Z" or "2013-08-20T17:14:21", however it doesn't work as soon as I add a timezone to it, e.g. "2013-08-20T19:14:21+02" or "2013-08-20T19:14:21+02:00". As far as I can tell the error is because the timezone (%Q) is completely ignored in time_facet.hpp. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9034 Trac 1.4.3