mirror of https://github.com/apache/lucene.git
use DateUtil rather then deprecated ClientUtils.parseDate
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1085130 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a258c7d554
commit
a191a9d3e4
|
@ -37,6 +37,7 @@ import org.apache.solr.client.solrj.util.ClientUtils;
|
|||
import org.apache.solr.common.SolrDocument;
|
||||
import org.apache.solr.common.SolrDocumentList;
|
||||
import org.apache.solr.common.SolrException;
|
||||
import org.apache.solr.common.util.DateUtil;
|
||||
import org.apache.solr.common.util.NamedList;
|
||||
import org.apache.solr.common.util.SimpleOrderedMap;
|
||||
import org.apache.solr.common.util.XMLErrorLogger;
|
||||
|
@ -165,7 +166,7 @@ public class XMLResponseParser extends ResponseParser
|
|||
@Override
|
||||
public Date read( String txt ) {
|
||||
try {
|
||||
return ClientUtils.parseDate(txt);
|
||||
return DateUtil.parseDate(txt);
|
||||
}
|
||||
catch( Exception ex ) {
|
||||
ex.printStackTrace();
|
||||
|
|
Loading…
Reference in New Issue