
19 Nov
2010
19 Nov
'10
1:43 p.m.
Hello I already sent this patch earlier this year but got no response. boost::posix_time::from_iso_string() converts "20100713" into "20100713T201007.300000" which is obviously wrong. The error is caused by boost::date_time::split(). The attached patch corrects split() so that an exception is thrown later in parse_delimited_time_duration(). The problem is reproducible in Boost 1.42.0 and 1.44.0. This simple example demonstrates the issue: const boost::posix_time::ptime time=boost::posix_time::from_iso_string("20100713"); std::cout << "Converted: " << boost::posix_time::to_iso_string(time) << std::endl; Converted: 20100713T201007.300000 Maybe someone can apply this patch. Regards, Peter.