Ticket #1861 (closed Patches: fixed)
time_duration type can not be correctly written or read of the period spans 24 hours of more (vc9 and probably others).
|Reported by:||ilya@…||Owned by:||az_sw_dude|
|Milestone:||To Be Determined||Component:||date_time|
Currently date_time library uses time_put::put (that delegates to strftime) in a non portable way passing it a tm structure with tm_hour field with values outside 0-23 range. See ISO 14882-2003 22.214.171.124.1 par. 1 and ISO 9899-1999 126.96.36.199 par. 3.
The issue was already discussed on the Boost mailing list: http://lists.boost.org/Archives/boost/2007/12/131541.php
This patch makes boost::date_time::time_facet::put(... , time_duration_type) output %H itself. As well as modifies boost::date_time::time_input_facet::get(... , time_duration_type) to input %H field as a variable length integer.
- Status changed from new to closed
- Resolution set to fixed
- Cc ilya.bobir@… added
- Status changed from closed to reopened
- Version changed from Boost Development Trunk to Boost 1.38.0
- Resolution fixed deleted