# Obtain UTC Offset with location

**URL:** https://discuss.elastic.co/t/obtain-utc-offset-with-location/297359
**Category:** Kibana
**Created:** [February 16, 2022, 10:43am UTC](https://discuss.elastic.co/t/obtain-utc-offset-with-location/297359 "2022-02-16T10:43:28Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![meyer1](https://avatars.discourse-cdn.com/v4/letter/m/b487fb/32.png) [@meyer1](https://discuss.elastic.co/u/meyer1)
#### Post date: [February 16, 2022, 10:43am UTC](https://discuss.elastic.co/t/obtain-utc-offset-with-location/297359/1 "2022-02-16T10:43:28Z")

</div>

Hello everyone.

I would like to know if it was possible to obtain the time difference (compared to utc time) if we have a location.

I have for example a residencyTimezone: America/Los\_Angeles  
I would like as a result: -8h

Is it possible? Maybe thanks to a scripted field?

Thank you for your future answers.

---

<div class="post-metadata">

### Author: ![meyer1](https://avatars.discourse-cdn.com/v4/letter/m/b487fb/32.png) [@meyer1](https://discuss.elastic.co/u/meyer1)
#### Post date: [February 16, 2022, 1:25pm UTC](https://discuss.elastic.co/t/obtain-utc-offset-with-location/297359/2 "2022-02-16T13:25:44Z")

</div>

Otherwise is it possible to get the local time according to my residencyTimezone?

---

<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: [March 16, 2022, 1:25pm UTC](https://discuss.elastic.co/t/obtain-utc-offset-with-location/297359/3 "2022-03-16T13:25:59Z")

</div>

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