mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 07:23:08 +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;
|
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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user