I've solved the problem. It was a time zone problem. :)
L.M. 2009/1/21 Luca Molteni <voloth...@gmail.com>: > Hello list, > > Using SolrJ with Solr 1.3 stable, namedlistcodec unmarshal in readVal > method (line 161) the number > > 1199142000000 > > as a date (1 January 2008), > > While executing the same query with the solr administration console, > it gives me a different date value: > > <date name="myfield">2007-12-31T23:00:00Z</date> > > It seems like there is a one hour difference between the twos. > > At first, I thought about a local time zone (I'm in Milan, Italy), but > I've made some tries, and using the Date and Calendar constructors > with the right locale gives me the first january. > > Could be possible that the date gots marshalled in a wrong way? > > Thank you very much. > > L.M. >