From a191a9d3e4ebdea03c9f43d9230920d5204802dd Mon Sep 17 00:00:00 2001 From: Ryan McKinley Date: Thu, 24 Mar 2011 20:45:33 +0000 Subject: [PATCH] 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 --- .../org/apache/solr/client/solrj/impl/XMLResponseParser.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/solr/src/solrj/org/apache/solr/client/solrj/impl/XMLResponseParser.java b/solr/src/solrj/org/apache/solr/client/solrj/impl/XMLResponseParser.java index fc412921d47..f75681f0118 100644 --- a/solr/src/solrj/org/apache/solr/client/solrj/impl/XMLResponseParser.java +++ b/solr/src/solrj/org/apache/solr/client/solrj/impl/XMLResponseParser.java @@ -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();