Hi all,

I defined a date range type in solr schema.
And then I try to write date to solr in my Java code, like this,
SimpleDateFormat sdf = new SimpleDateFormat(“yyyy-MM-dd HH:mm:ss”);
doc.addField(“date”,  sdf.parse(“1990-01-01 15:36:42”));

while the data in solr is:
"date": "1900-01-01T08:00:00Z"

Anyone knows why the difference is not 8 hours?

Regards,
Albert

Reply via email to