Timezone causing problem when doing a search query to an index!

The timezone will be stored as UTC, so if you want to get events during a calendar day in local time you have to adjust your query accordingly. If you make the query using the query DSL rather than a query string you can use a range query and set the timezone option to make ES do the timezone adjustment for you.

1 Like