Skip to content
This repository has been archived by the owner on Jun 30, 2018. It is now read-only.

Elasticsearch facets with user's local timezone #960

Open
simonmorley opened this issue Apr 24, 2014 · 0 comments
Open

Elasticsearch facets with user's local timezone #960

simonmorley opened this issue Apr 24, 2014 · 0 comments

Comments

@simonmorley
Copy link

Facets are all returned with a UTC timestamp.

We hadn't noticed the problem until we overlay an ES facet series on top of a series generated with an Arel query. Our mistake.

We have a filter in our Application controller which converts to the user's localtime. This doesn't (obviously) work for ES. But I think it should for Tire.

To convert to localtime, I was intending on mapping each timestamp to the users localtime.

However, I was wondering if there a more sophisticated way to do this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant