# UTC time conversion

**URL:** <https://forum.inductiveautomation.com/t/utc-time-conversion/93022>\
**Category:** Ignition\
**Created:** [July 10, 2024, 4:38pm UTC](https://forum.inductiveautomation.com/t/utc-time-conversion/93022 "2024-07-10T16:38:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![marco\_alvarez](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@marco\_alvarez](https://forum.inductiveautomation.com/u/marco_alvarez)\
**Post date:** [July 10, 2024, 4:38pm UTC](https://forum.inductiveautomation.com/t/utc-time-conversion/93022/1 "2024-07-10T16:38:42Z")

</div>

Hi, Im using the web Dev module and I have a client who is sending a time in UTC, I need to send some data back based on that time, the problem is that I need to convert that time to my gateway time zone and send the right data back. Should be easy but I dont know how to handle the time savings issue.

---

<div class="post-metadata">

**Author:** ![michael.flagler](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michael.flagler/32/26272_2.png) [@michael.flagler](https://forum.inductiveautomation.com/u/michael.flagler)\
**Post date:** [July 10, 2024, 4:46pm UTC](https://forum.inductiveautomation.com/t/utc-time-conversion/93022/2 "2024-07-10T16:46:26Z")

</div>

You'll probably need the functions like:

```python
system.date.getTimezoneOffset(date)

```

and

```python
system.date.addHours(date, hours)

```

Refer to the manual for more help.

> **[system.date | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-date)**
>
> Date Functions

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [July 10, 2024, 4:51pm UTC](https://forum.inductiveautomation.com/t/utc-time-conversion/93022/3 "2024-07-10T16:51:08Z")

</div>

What is the format coming in? At this point, I'm assuming it's text?

---

<div class="post-metadata">

**Author:** ![marco\_alvarez](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@marco\_alvarez](https://forum.inductiveautomation.com/u/marco_alvarez)\
**Post date:** [July 10, 2024, 4:57pm UTC](https://forum.inductiveautomation.com/t/utc-time-conversion/93022/4 "2024-07-10T16:57:25Z")

</div>

I was looking for something that include the daylight savings  
system.date.getTimezoneOffset(date)  
we are good, thanks
