# Discover tab shows a different date than the indexed date

**URL:** <https://discuss.elastic.co/t/discover-tab-shows-a-different-date-than-the-indexed-date/150469>\
**Category:** Kibana\
**Created:** [September 30, 2018, 10:34am UTC](https://discuss.elastic.co/t/discover-tab-shows-a-different-date-than-the-indexed-date/150469 "2018-09-30T10:34:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rohini\_basu](https://avatars.discourse-cdn.com/v4/letter/r/57b2e6/32.png) [@rohini\_basu](https://discuss.elastic.co/u/rohini_basu)\
**Post date:** [September 30, 2018, 10:34am UTC](https://discuss.elastic.co/t/discover-tab-shows-a-different-date-than-the-indexed-date/150469/1 "2018-09-30T10:34:58Z")

</div>

I am using ELK 6.4.1.  
I am indexing a date field ExecutionDate. The filter block in logstash config file looks like below:  
date {  
match =\> ["ExecutionDate","ISO8601", "dd/MM/yyyy HH:mm:ss.SSS"]  
target =\> "ExecutionDate"  
locale =\> "en"  
}

In Kibana, under Dev Tool, when I run GET /\<index\_name\>/\_search, I get below:  
"\_source": {  
"host": "demo-mks",  
"message": "23/08/2018 08:35:21.919,1,QA\_MVA1\_test\_model.usp,PCA,data2\r",  
"@timestamp": "2018-09-30T10:16:22.801Z",  
"@version": "1",  
"path": "/opt/elastic/elasticsearch/Data/stat\_data\_4950.csv",  
"Pass": true,  
"ActiveDCP": "data2",  
**"ExecutionDate": "2018-08-23T08:35:21.919Z",**  
"ModelName": "QA\_MVA1\_test\_model.usp",  
"ModelType": "PCA"  
}

In Kibana, under discover tab, I see that the ExecutionDate is coming at a difference of +5.5hours (for 08:35am, it is showing as 14:05).  
kibana

What am I missing here?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [September 30, 2018, 10:38am UTC](https://discuss.elastic.co/t/discover-tab-shows-a-different-date-than-the-indexed-date/150469/2 "2018-09-30T10:38:07Z")

</div>

The document contains the raw data that has been indexed. These are all in UTC timezone. When Kibana shows results, it will however adjust this to the local timezone, which I assume is 5.5 hours off UTC in your case.

---

<div class="post-metadata">

**Author:** ![rohini\_basu](https://avatars.discourse-cdn.com/v4/letter/r/57b2e6/32.png) [@rohini\_basu](https://discuss.elastic.co/u/rohini_basu)\
**Post date:** [September 30, 2018, 10:46am UTC](https://discuss.elastic.co/t/discover-tab-shows-a-different-date-than-the-indexed-date/150469/3 "2018-09-30T10:46:31Z")

</div>

Thanks. Is there any way to turn off the timezone conversion feature in Kibana?

I believe, one turnaround is if I can index this data as string. But for doing date histogram or date range aggregations, I need this column as a date type. Is there any way I can show the raw data as it is as a date field in Kibana?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [September 30, 2018, 10:49am UTC](https://discuss.elastic.co/t/discover-tab-shows-a-different-date-than-the-indexed-date/150469/4 "2018-09-30T10:49:17Z")

</div>

You can set the timezone used to UTC through `dateFormat:tz` under the [advanced settings section](https://www.elastic.co/guide/en/kibana/6.4/advanced-options.html). The raw data in Elasticsearch must however be in UTC timezone.

---

<div class="post-metadata">

**Author:** ![rohini\_basu](https://avatars.discourse-cdn.com/v4/letter/r/57b2e6/32.png) [@rohini\_basu](https://discuss.elastic.co/u/rohini_basu)\
**Post date:** [September 30, 2018, 1:56pm UTC](https://discuss.elastic.co/t/discover-tab-shows-a-different-date-than-the-indexed-date/150469/5 "2018-09-30T13:56:32Z")

</div>

Thanks, it worked 🙂

---

<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:** [October 28, 2018, 1:56pm UTC](https://discuss.elastic.co/t/discover-tab-shows-a-different-date-than-the-indexed-date/150469/6 "2018-10-28T13:56:36Z")

</div>

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