mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Parse solr facet range date and time with proper format (fix #11192)
(cherry picked from commit 98e3a16b42
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
813c7cb1f6
commit
1b577937c6
@@ -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