Hii Rick,
All clients are in different time zone. So I was searching for some support
which can convert the date fields in the query response in given time zone.

Thanks
Renuka Srishti

On Thu, Nov 16, 2017 at 5:58 PM, Rick Leir <rl...@leirtech.com> wrote:

> Renuka
> Are your clients all in the same time zone? Solr should support clients in
> several timezones, and UTC conversion to local is best done in the client
> in my mind. Thanks -- Rick
>
> On November 16, 2017 6:54:47 AM EST, Renuka Srishti <
> renuka.srisht...@gmail.com> wrote:
> >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
> >>
> >>
>
> --
> Sorry for being brief. Alternate email is rickleir at yahoo dot com

Reply via email to