Opened 14 years ago

Last modified 14 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:

Description

Hi,

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 14 years ago.

Download all attachments as: .zip

Change History (2)

by anonymous, 14 years ago

Attachment: main.cpp added

comment:1 by Steven Watanabe, 14 years ago

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