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:
Ryan McKinley 2011-03-24 20:45:33 +00:00
parent a258c7d554
commit a191a9d3e4
1 changed files with 2 additions and 1 deletions

View File

@ -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();