Opened 9 years ago

#9002 new Bugs

boots::date_time::from_iso_string() accepts invalid time mark

Reported by: Alexey Pavlyutkin <alexey.pavlyutkin@…> Owned by: az_sw_dude
Milestone: To Be Determined Component: date_time
Version: Boost 1.54.0 Severity: Problem
Keywords: time_from_string invalid time Cc: rashmi.sripad@…, Uday.Kelkar@…, Nickolay.Razumovskij@…

Description

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

Change History (0)

Note: See TracTickets for help on using tickets.