Hi,

When using SolrJ I've realized document dates are being modified according
to the environment UTC timezone. The timezone is being set in the inner
class ISO8601CanonicalDateFormat of DateField class.

I've read some posts where people say Solr should be most locale and culture
agnostic. So, what's the purpose for that timezone processing before
delivering the content to the client? Any other thoughts related to this
issue?

Code to simulate issue:

import java.io.IOException;

import org.apache.lucene.document.Field;
import org.apache.lucene.document.Field.Index;
import org.apache.lucene.document.Field.Store;
import org.apache.solr.schema.DateField;

public class Teste {
    public static void main(String[] args) throws IOException {
        Field field = new
Field("update","2009-10-02T13:17:00Z",Store.NO,Index.ANALYZED);

        DateField dateField = new DateField();
        System.out.println(dateField.toObject(field));
    }
}

Thanks in advance!
Michel Bottan

Reply via email to