Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#128 DateTimeParser ignores non-format characters

open
nobody
None
5
2014-08-14
2007-12-22
No

The DateTimeParser::parse() functions currently ignore non-format specifiers.

As a result, a tryParse() with the format string "%m/%d/%Y" will succeed for "01.12.2007", however, the resulting DateTime will have the wrong values ("12/01/2007").

Discussion

  • related: Poco::DateTimeParser is always trying to retrieve as much data as possible.
    It would be a good idea to make it signal about malformed input data, or to have two
    methods: strict and relaxed one.