Thanks for your response Shawn. I know it deals with UTC only, but it will
be great if we can change the date timeZone in solr response. As I am using
Solr CSV feature and it will be helpful if the date field in the CSV result
can convert into client TimeZone. Please suggest if you have any alternate
for this.

Thanks
Renuka Srishti

On Wed, Nov 15, 2017 at 6:16 PM, Shawn Heisey <apa...@elyograg.org> wrote:

> On 11/15/2017 5:34 AM, Renuka Srishti wrote:
>
>> I am working on CSV export using Apache Solr. I have written all the
>> required query and set wt as CSV. I am getting my results as I want,but
>> the
>> problem is TimeZone.
>>
>> Solr stores date value in UTC, but my client timeZone is different. Is
>> there any way to convert date timeZone from UTC to clientTimeZone direclty
>> in the Solr response?
>>
>
> Not that I know of.  UTC is the only storage/transfer method that works in
> all situations.  Converting dates to the local timezone is a task for the
> client, when it displays the date to a user.
>
> Typically, you would consume the response from Solr into object types for
> the language your application is written in.  A date value in the response
> should end up in a date object.  Date objects in most programming languages
> have the ability to display in specific timezones.
>
> Thanks,
> Shawn
>
>

Reply via email to