Skip to content

Adding time_zone option to the date range queries #317

@selimt

Description

@selimt

We store our timestamps as UTC in Elasticsearch. When we use the expressions like today or now-1d with the date range queries, we can get incorrect results. Looking at the ES documentation, it looks like there is a way to provide the local timezone:

https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-range-query.html#range-query-time-zone

Would it be possible to add this feature into this package ?

Thanks
-Selim

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions