# Timezone in Simple Query

**URL:** <https://discuss.elastic.co/t/timezone-in-simple-query/19460>\
**Category:** Elasticsearch\
**Created:** [August 26, 2014, 12:27pm UTC](https://discuss.elastic.co/t/timezone-in-simple-query/19460 "2014-08-26T12:27:35Z")\
**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:27pm UTC](https://discuss.elastic.co/t/timezone-in-simple-query/19460/1 "2014-08-26T12:27:35Z")

</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 do not work }  
}

How can i do to permit any users to query correct respect his own timezone...appending  
it to query??

Tnx

--  
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/39414b48-f2c5-4faa-b103-96b91c0888b2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/39414b48-f2c5-4faa-b103-96b91c0888b2%40googlegroups.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/19460/2 "2017-07-06T01:06:29Z")

</div>


