[Boost-bugs] [Boost C++ Libraries] #9002: boots::date_time::from_iso_string() accepts invalid time mark

Subject: [Boost-bugs] [Boost C++ Libraries] #9002: boots::date_time::from_iso_string() accepts invalid time mark
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-08-16 08:03:40


#9002: boots::date_time::from_iso_string() accepts invalid time mark
-------------------------------------------------+-------------------------
 Reporter: Alexey Pavlyutkin | Owner: az_sw_dude
  <alexey.pavlyutkin@…> | Status: new
     Type: Bugs | Component: date_time
Milestone: To Be Determined | Severity: Problem
  Version: Boost 1.54.0 |
 Keywords: time_from_string invalid time |
-------------------------------------------------+-------------------------
 Both from_iso_string() and time_from_string() allow time > 23:59:59, e.g.
 they accept "2013-08-16 26:01:01" and do not throw. I find that is very
 strange and confusing, and that also breaks ISO 8601. I see that after
 parsing the rest of string to time_duration you do not check it to be in
 valid range [ 0, 24:00:00 ), may be you should? Thank you

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9002>
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:50:13 UTC