django-elasticsearch-dsl-drf
django-elasticsearch-dsl-drf copied to clipboard
Adding time_zone option to the date range queries
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