Skip to content

Poco::DateTimeParser::tryParse issue #1258

@micheleselea

Description

@micheleselea

Hi all, if you use DateTimeParser::tryParse to parse an invalida datetime, often you obtain true but the datetime is invalid

    Poco::DateTime dt;
int tz = 0;
if (Poco::DateTimeParser::tryParse("%d/%m/%Y", "some invalid date time", dt, tz)) {
         //you obtain true but with dt with a negative value
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions