mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Merge pull request #11194 from danielcoelhocgu/fix-11192
Parse Solr facet range date and time with proper format
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user