# Epoch time to time with timezone

**URL:** <https://forum.inductiveautomation.com/t/epoch-time-to-time-with-timezone/4787>\
**Category:** Ignition\
**Created:** [July 9, 2012, 8:30am UTC](https://forum.inductiveautomation.com/t/epoch-time-to-time-with-timezone/4787 "2012-07-09T08:30:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![quper](https://avatars.discourse-cdn.com/v4/letter/q/aeb1de/32.png) [@quper](https://forum.inductiveautomation.com/u/quper)\
**Post date:** [July 9, 2012, 8:30am UTC](https://forum.inductiveautomation.com/t/epoch-time-to-time-with-timezone/4787/1 "2012-07-09T08:30:09Z")

</div>

Hello,  
I am reading register from controller.  
Register is epoch time like “1341832802”.

I need to display that as time with local timezone.  
I am using expression toDate({register path}\*1000),  
but I am getting time with 3 hours difference from my time zone(EET).  
I changed time zone to local in project properties, but no luck.  
Of course I can use dateArithmetics and (-3, “hour”) in summer time and (-2, “hour”) in winter time.  
But is there a way to add timezone in expression or somehow else?

---

<div class="post-metadata">

**Author:** ![quper](https://avatars.discourse-cdn.com/v4/letter/q/aeb1de/32.png) [@quper](https://forum.inductiveautomation.com/u/quper)\
**Post date:** [July 9, 2012, 9:39am UTC](https://forum.inductiveautomation.com/t/epoch-time-to-time-with-timezone/4787/2 "2012-07-09T09:39:27Z")

</div>

Problem solved.  
Actually controller changes time to summer/winter mode itself.  
So

```auto
dateArithmetic(toDate({SERVER/Register/Nr04_Comm_Reg1_Time_Seconds1970}*1000), -3, "hour")
```

works good.
