Merge pull request #11194 from danielcoelhocgu/fix-11192

Parse Solr facet range date and time with proper format
This commit is contained in:
Tim Donohue
2025-08-25 11:04:49 -05:00
committed by GitHub

View File

@@ -556,7 +556,7 @@ public class SolrImportExport {
YearMonth monthStartDate; YearMonth monthStartDate;
String monthStart = monthFacet.getValue(); String monthStart = monthFacet.getValue();
try { try {
monthStartDate = YearMonth.parse(monthStart); monthStartDate = YearMonth.parse(monthStart, DateTimeFormatter.ISO_OFFSET_DATE_TIME);
} catch (DateTimeParseException e) { } catch (DateTimeParseException e) {
throw new SolrImportExportException("Could not read start of month batch as date: " + monthStart, e); throw new SolrImportExportException("Could not read start of month batch as date: " + monthStart, e);
} }