# Timezone in simple query

**URL:** <https://discuss.elastic.co/t/timezone-in-simple-query/19459>\
**Category:** Elasticsearch\
**Created:** [August 26, 2014, 12:20pm UTC](https://discuss.elastic.co/t/timezone-in-simple-query/19459 "2014-08-26T12:20:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gianni\_Livolsi](https://avatars.discourse-cdn.com/v4/letter/g/41988e/32.png) [@Gianni\_Livolsi](https://discuss.elastic.co/u/Gianni_Livolsi)\
**Post date:** [August 26, 2014, 12:20pm UTC](https://discuss.elastic.co/t/timezone-in-simple-query/19459/1 "2014-08-26T12:20:22Z")

</div>

All dates are UTC. Internally, a date maps to a number type long. When  
applied on date fields the range filter accepts also a time\_zone parameter {  
"range" : { "born" : { "gte": "2012-01-01",  
"time\_zone": "+1:00" } } } but this is not possible {  
"match" : { "post\_date" : "2012-01-01", _"time\_zone":  
"+1:00"_ \<\<\<\< this go wrong } } how can i do this to permit any users to  
query correct respect his timezone...!! Tnx

--  
View this message in context: [http://elasticsearch-users.115913.n3.nabble.com/Timezone-in-simple-query-tp4062440.html](http://elasticsearch-users.115913.n3.nabble.com/Timezone-in-simple-query-tp4062440.html)  
Sent from the ElasticSearch Users mailing list archive at [Nabble.com](http://Nabble.com).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/1409055622769-4062440.post%40n3.nabble.com](https://groups.google.com/d/msgid/elasticsearch/1409055622769-4062440.post%40n3.nabble.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 1:06am UTC](https://discuss.elastic.co/t/timezone-in-simple-query/19459/2 "2017-07-06T01:06:30Z")

</div>


