title: Elasticsearch and timezones
body: <p>I have an index with a time field whose values are like:</p>
  
  <pre><code>time: 2012-06-02T12:25:27+02:00
  </code></pre>
  
  <p>Then I'm running the following query:</p>
  
  <pre><code>{
    "sort": {
      "time": "desc"
    },
    "query": {
      "query_string": {
        "query": "time:[2012-6-2T12:24:00Z TO 2012-6-2T12:26:00Z]",
        "default_operator": "AND"
      }
    },
    "size": 30
  }
  </code></pre>
  
  <p>That is returning 0 hits, but if I shift the query string by 2 hours then it matches with the records in that time. So, I'm pretty sure this is a time zone problem. Reading the docs I found I can put a "time_zone" : 2 in the query, but.... where should it be placed in the previous query? I tried many options but couldn't make it work.</p>