# Date timezone issue

**URL:** <https://discuss.elastic.co/t/date-timezone-issue/266644>\
**Category:** Elasticsearch\
**Created:** [March 9, 2021, 7:11am UTC](https://discuss.elastic.co/t/date-timezone-issue/266644 "2021-03-09T07:11:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Priyank07](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/priyank07/32/83718_2.png) [@Priyank07](https://discuss.elastic.co/u/Priyank07)\
**Post date:** [March 9, 2021, 7:11am UTC](https://discuss.elastic.co/t/date-timezone-issue/266644/1 "2021-03-09T07:11:31Z")

</div>

Hi,  
I am pushing some documents to elastic and passing time as local time.  
So my question is..  
Will that time converts to utc or it will be in local only.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 9, 2021, 7:54am UTC](https://discuss.elastic.co/t/date-timezone-issue/266644/2 "2021-03-09T07:54:25Z")

</div>

If you don't provide any information regarding the timezone, elasticsearch will consider every date as UTC value.

---

<div class="post-metadata">

**Author:** ![Priyank07](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/priyank07/32/83718_2.png) [@Priyank07](https://discuss.elastic.co/u/Priyank07)\
**Post date:** [March 9, 2021, 7:57am UTC](https://discuss.elastic.co/t/date-timezone-issue/266644/3 "2021-03-09T07:57:33Z")

</div>

Hi,  
Thankyou for response.

If we send IST time say '2021-03-09 12:30' will it store it as UTC as '2021-03-09 07:00' or it will be same '2021-03-09 12:30'

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 9, 2021, 8:04am UTC](https://discuss.elastic.co/t/date-timezone-issue/266644/4 "2021-03-09T08:04:39Z")

</div>

The date you sent does not have a timezone and I suppose that you don't set anything in the mapping and that you are sending directly to elasticsearch with no ingest pipeline.

So in that case, elasticsearch will consider it as `2021-03-09 12:30 UTC`.

---

<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:** [April 6, 2021, 8:05am UTC](https://discuss.elastic.co/t/date-timezone-issue/266644/5 "2021-04-06T08:05:34Z")

</div>

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