mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-15 05:53:08 +00:00
Fixes #8558 - set Solr UTC timezone
Set the timezone of the Solr date formatter to UTC
This commit is contained in:
@@ -35,6 +35,8 @@ public class SolrUtils {
|
|||||||
* @return date formatter compatible with Solr.
|
* @return date formatter compatible with Solr.
|
||||||
*/
|
*/
|
||||||
public static DateFormat getDateFormatter() {
|
public static DateFormat getDateFormatter() {
|
||||||
return new SimpleDateFormat(SolrUtils.SOLR_DATE_FORMAT);
|
DateFormat formatter = new SimpleDateFormat(SolrUtils.SOLR_DATE_FORMAT);
|
||||||
|
formatter.setTimeZone(SOLR_TIME_ZONE);
|
||||||
|
return formatter;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user