Opened 10 years ago

Last modified 10 years ago

#2635 new Bugs

date_time input_facet formatting

Reported by: tmmikolajczyk@… Owned by: az_sw_dude
Milestone: Boost 1.38.0 Component: date_time
Version: Boost 1.37.0 Severity: Problem
Keywords: Cc:



I've found a problem with the input_facet formating. The following format: "%Y-%m-%d" causes that the date: "1999-1-01" is allowed, but shouldn't be (month has to be in 2-digit format). See attached main.cpp file. It's a unit test clearly describing the problem. Tested on gcc 3.3.6 and 4.3.1.

Attachments (1)

main.cpp (1.2 KB) - added by anonymous 10 years ago.

Download all attachments as: .zip

Change History (2)

Changed 10 years ago by anonymous

Attachment: main.cpp added

comment:1 Changed 10 years ago by Steven Watanabe

Component: Nonedate_time
Owner: set to az_sw_dude
Note: See TracTickets for help on using tickets.