[opencms-dev] Using of SOLR timezone parameter

Filip Kratochvil filip.kratochvil at nelasoft.cz
Thu Oct 30 22:13:00 CET 2014


Hi guys,

 

we would like to change Timezone in the SOLR query by TZ parameter, but it
doesn´t have any effect and we can´t take results.

 

Wiki:

https://cwiki.apache.org/confluence/display/solr/Working+with+Dates

 

Part of the query:

. &fq=CurrentDate_cs_mdt:[2014-01-21T17:00:00Z TO
2014-01-22T17:00:00Z]&TZ=Europe/Prague .

 

Datetime in the xmlcontent have this value:

2014-01-21T17:00:00Z

 

But i see datetimei n the SOLR index have this value:

2014-01-21T16:00:00Z

 

So in the real is here +1 hour time warp (depends on server settings???). I
think it´s regular because dates in the SOLR  are stored in the UTC. But for
the regular results should be possible to use TZ parameter, but using it
don´t have any effect.

 

When we use query with -1HOUR correction, we take results:

. &fq=CurrentDate_cs_mdt:[2014-01-21T17:00:00Z-1HOUR TO
2014-01-22T17:00:00Z] .

 

Or I'm wrong?

 

Thank you very much for the help and hope to see you at OpenCms Days 2014.

 

--
Regards
Filip Kratochvil
------------------------------------------------
NELASOFT Technologies, s.r.o.
E-mail:  <mailto:filip.kratochvil at nelasoft.cz> filip.kratochvil at nelasoft.cz
Web:  <http://www.nelasoft.cz> www.nelasoft.cz

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20141030/c9b8c14c/attachment.htm>


More information about the opencms-dev mailing list