Hi,

I am having a date field in my solr schema and I am indexing a proper UTC
date to that field. If I am directly querying Solr, I am able to see the
field with UTC time in that in the JSON response.

But when I use SolrJ and get it as object, I am seeing that the UTC date is
of type Date and I am not able to retrieve back the UTC date from it and I
get only long timestamp from that object.

I also see a private variable in that Date class called as cDate which has
what I want (Date in UTC format). But I am not able to get the UTC value out
of that variable. Is there any better ways to get UTC timestamp out of that
field?

Thanks,
Sriram



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-date-retrieve-back-UTC-tp4187449.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to