# Daylight Savings Time with only weekday and time range

**URL:** <https://discuss.elastic.co/t/daylight-savings-time-with-only-weekday-and-time-range/128779>\
**Category:** Elasticsearch\
**Created:** [April 20, 2018, 12:22am UTC](https://discuss.elastic.co/t/daylight-savings-time-with-only-weekday-and-time-range/128779 "2018-04-20T00:22:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![agruttner](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@agruttner](https://discuss.elastic.co/u/agruttner)\
**Post date:** [April 20, 2018, 12:22am UTC](https://discuss.elastic.co/t/daylight-savings-time-with-only-weekday-and-time-range/128779/1 "2018-04-20T00:22:13Z")

</div>

Hi All,

We're trying to index some date ranges that only use a weekday and time, and running into issues with daylight savings time.

For example if we have the following mapping:

```auto
"properties": {
  "time": {
    "type": "date_range",
    "format": "E HH:mm ZZZ"
  }
}

```

And a document like:

```auto
{
    "time" : {
      "gte": "Monday 10:00 America/Los_Angeles",
      "lt": "Monday 20:00 America/Los_Angeles"
    }
}

```

We would want this query to match during daylight savings but not after:

```auto
{
  "query": {
    "term": {
      "time": "Monday 17:00 UTC"
    }
  }
}

```

Is there a way to do this with elasticsearch?

We tried changing the date format to `E HH:mm ZZZ || YYYY-MM-DD HH:mm ZZZ` but including the year/month/day in the query doesn't match any documents indexed using only weekday+time.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 18, 2018, 12:22am UTC](https://discuss.elastic.co/t/daylight-savings-time-with-only-weekday-and-time-range/128779/2 "2018-05-18T00:22:24Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
