# Timezone issue in ingesting a document

**URL:** <https://discuss.elastic.co/t/timezone-issue-in-ingesting-a-document/243843>\
**Category:** Elasticsearch\
**Created:** [August 5, 2020, 9:53am UTC](https://discuss.elastic.co/t/timezone-issue-in-ingesting-a-document/243843 "2020-08-05T09:53:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gauti](https://avatars.discourse-cdn.com/v4/letter/g/cdc98d/32.png) [@Gauti](https://discuss.elastic.co/u/Gauti)\
**Post date:** [August 5, 2020, 9:53am UTC](https://discuss.elastic.co/t/timezone-issue-in-ingesting-a-document/243843/1 "2020-08-05T09:53:30Z")

</div>

Hi All,

I am ingesting documents into ELK using logstash http\_poller plugin, there is a static field i have added as "default\_date" and the value for this date field i had mentioned as "01-01-1970 00:00:00"

`default_date : 01-01-1970 00:00:00`

here is my logstash filter

```
mutate { add_field => { "default_date" => "01-01-1970 00:00:00" } }
 date { match => ["[default_date]", "MM-dd-yyyy HH:mm:ss"]

```

this value is been used for calculating one of the time difference value for us.

The problem is when this is getting into elasticsearch the value changes as "01-01-1970 00:05:30"

`default_date : 01.01.1970 00:05:30`

Additional 05:30 is getting added, how can i get rid of this, because for my calculation the time should be 00:00:00

Any advice please.

Thanks  
Gautham

---

<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:** [September 2, 2020, 9:53am UTC](https://discuss.elastic.co/t/timezone-issue-in-ingesting-a-document/243843/2 "2020-09-02T09:53:30Z")

</div>

Closed on September 2, 2020, 9:53am UTC

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