# Why is aggregation giving UTC?

**URL:** <https://discuss.elastic.co/t/why-is-aggregation-giving-utc/94172>\
**Category:** Elasticsearch\
**Created:** [July 21, 2017, 11:28pm UTC](https://discuss.elastic.co/t/why-is-aggregation-giving-utc/94172 "2017-07-21T23:28:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![seanziee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seanziee/32/45151_2.png) [@seanziee](https://discuss.elastic.co/u/seanziee)\
**Post date:** [July 21, 2017, 11:28pm UTC](https://discuss.elastic.co/t/why-is-aggregation-giving-utc/94172/1 "2017-07-21T23:28:54Z")

</div>

Hi,

I'm making some ES aggs and when I do a max/min/stats agg on the @timestamp field, it returns values in UTC. I'd like my values in EST for example. How can I do that? And why is it showing UTC by default?

Thanks!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 22, 2017, 12:11am UTC](https://discuss.elastic.co/t/why-is-aggregation-giving-utc/94172/2 "2017-07-22T00:11:51Z")

</div>

Elasticsearch uses UTC everywhere, the expectation is that the client does the conversion.

---

<div class="post-metadata">

**Author:** ![seanziee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seanziee/32/45151_2.png) [@seanziee](https://discuss.elastic.co/u/seanziee)\
**Post date:** [July 22, 2017, 1:06am UTC](https://discuss.elastic.co/t/why-is-aggregation-giving-utc/94172/3 "2017-07-22T01:06:53Z")

</div>

Is there any way to do that in the query/aggregation in ES? Through a script or something? I am pulling the values and displaying them on an interface that doesn't allow scripting, only pure text and it would ideally be done by ES.

Thanks for the response!

---

<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:** [August 19, 2017, 1:07am UTC](https://discuss.elastic.co/t/why-is-aggregation-giving-utc/94172/4 "2017-08-19T01:07:36Z")

</div>

Closed on August 19, 2017, 1:07am UTC

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