[Boost-bugs] [Boost C++ Libraries] #1861: time_duration type can not be correctly written or read of the period spans 24 hours of more (vc9 and probably others).

Subject: [Boost-bugs] [Boost C++ Libraries] #1861: time_duration type can not be correctly written or read of the period spans 24 hours of more (vc9 and probably others).
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-04-24 20:42:58


#1861: time_duration type can not be correctly written or read of the period spans
24 hours of more (vc9 and probably others).
-------------------------------------+--------------------------------------
 Reporter: ilya_at_[hidden] | Owner: az_sw_dude
     Type: Patches | Status: new
Milestone: To Be Determined | Component: date_time
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
-------------------------------------+--------------------------------------
 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.2.5.3.1 par.
 1 and ISO 9899-1999 7.23.3.5 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.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1861>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:57 UTC