Open qifeng-bai opened 4 years ago
I'd expect it to match using that pattern, so this is a bug if it's not working.
@MattBlissett I tried : DateParsers.defaultNumericalDateParser().parse("2002-03-10 00:00:00.0"), which uses. ThreeTenNumericalDateParser, failed,
DateParsers.defaultNumericalDateParser().parse("2002-03-10T00:00:00.0") , this format works
Do we still support 2002-03-10 00:00:00.0 format?
If I remember correctly, 2002-03-10 00:00:00.0 was parsed correctly before.
It matches the NUMERICAL_DATE_PATTERN, and then failed.
if (NUMERICAL_DATE_PATTERN.matcher(input).matches()) { return NUMERICAL_DATE_PARSER.parse(input, DateComponentOrdering.ISO_ETC); https://github.com/gbif/parsers/blob/master/src/main/java/org/gbif/common/parsers/date/TextDateParser.java#L62