Parse solr facet range date and time with proper format (fix #11192)

(cherry picked from commit 98e3a16b42)
This commit is contained in:
Daniel Coelho
2025-08-25 09:06:49 -03:00
committed by github-actions[bot]
parent 813c7cb1f6
commit 1b577937c6

View File

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