# Difference in Date and Time tag value between PLC and Ignition

**URL:** <https://forum.inductiveautomation.com/t/difference-in-date-and-time-tag-value-between-plc-and-ignition/74921>\
**Category:** Ignition\
**Created:** [June 12, 2023, 7:16pm UTC](https://forum.inductiveautomation.com/t/difference-in-date-and-time-tag-value-between-plc-and-ignition/74921 "2023-06-12T19:16:15Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexander\_Filippov](https://avatars.discourse-cdn.com/v4/letter/a/7993a0/32.png) [@Alexander\_Filippov](https://forum.inductiveautomation.com/u/Alexander_Filippov)\
**Post date:** [June 12, 2023, 7:16pm UTC](https://forum.inductiveautomation.com/t/difference-in-date-and-time-tag-value-between-plc-and-ignition/74921/1 "2023-06-12T19:16:15Z")

</div>

Good day, everyone!  
Having an interesting problem with Date and Time tag value.  
Ignition "reads" the PLC tag of a Date\_and\_Time type with 4 hours difference.  
PLC tag: 14:00 (2PM)  
Ignition reads the same tag: 10:00 (10AM)  
If this helps, I am in the Eastern Time zone (New York)  
PLC type - Wago PFC200  
Comm protocol: OPC-UA  
Server is set to the same time zone and displays the correct time.  
I have a suspicion that there may be something with the Server time settings. But everything seems fine and unfortunately, I don't have access to server's configuration settings.  
Did anybody experience a similar issue?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 12, 2023, 7:21pm UTC](https://forum.inductiveautomation.com/t/difference-in-date-and-time-tag-value-between-plc-and-ignition/74921/2 "2023-06-12T19:21:01Z")

</div>

Well, that difference is the current offset between US Eastern Daylight Time and UTC. Suspiciously so.

---

<div class="post-metadata">

**Author:** ![Alexander\_Filippov](https://avatars.discourse-cdn.com/v4/letter/a/7993a0/32.png) [@Alexander\_Filippov](https://forum.inductiveautomation.com/u/Alexander_Filippov)\
**Post date:** [June 12, 2023, 7:25pm UTC](https://forum.inductiveautomation.com/t/difference-in-date-and-time-tag-value-between-plc-and-ignition/74921/3 "2023-06-12T19:25:45Z")

</div>

I thought so too at first.  
But UTC is Eastern time plus 5 hours.  
Meaning, PLC time of14:00 EST = 19:00 UTC

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [June 12, 2023, 7:28pm UTC](https://forum.inductiveautomation.com/t/difference-in-date-and-time-tag-value-between-plc-and-ignition/74921/4 "2023-06-12T19:28:08Z")

</div>

If you, the Ignition Gateway, and the PLC are all located in the same timezone / location, then the most likely issue is the PLC is configured with the wrong time(zone).

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 12, 2023, 7:28pm UTC](https://forum.inductiveautomation.com/t/difference-in-date-and-time-tag-value-between-plc-and-ignition/74921/5 "2023-06-12T19:28:23Z")

</div>

Not in the summer. **Daylight** time.

---

<div class="post-metadata">

**Author:** ![Alexander\_Filippov](https://avatars.discourse-cdn.com/v4/letter/a/7993a0/32.png) [@Alexander\_Filippov](https://forum.inductiveautomation.com/u/Alexander_Filippov)\
**Post date:** [June 12, 2023, 7:29pm UTC](https://forum.inductiveautomation.com/t/difference-in-date-and-time-tag-value-between-plc-and-ignition/74921/6 "2023-06-12T19:29:41Z")

</div>

PLC is configured correctly though.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [June 12, 2023, 7:30pm UTC](https://forum.inductiveautomation.com/t/difference-in-date-and-time-tag-value-between-plc-and-ignition/74921/7 "2023-06-12T19:30:31Z")

</div>

Okay, then it's probably what Phil is suggesting. You are viewing the time as UTC in one context, and as EDT in another. In most (all?) places that Ignition shows you a date/time it's doing so in the local timezone.

---

<div class="post-metadata">

**Author:** ![Alexander\_Filippov](https://avatars.discourse-cdn.com/v4/letter/a/7993a0/32.png) [@Alexander\_Filippov](https://forum.inductiveautomation.com/u/Alexander_Filippov)\
**Post date:** [June 12, 2023, 7:32pm UTC](https://forum.inductiveautomation.com/t/difference-in-date-and-time-tag-value-between-plc-and-ignition/74921/8 "2023-06-12T19:32:33Z")

</div>

I see now.  
PLC is configured correctly though with timezone / date / time same as on the server.  
I will be waiting for some more information from the PLC manufacturer regarding the Date and Time value transfer over OPC-UA. Maybe there is something else in their configuration we have to set.  
Thank you!

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 12, 2023, 7:33pm UTC](https://forum.inductiveautomation.com/t/difference-in-date-and-time-tag-value-between-plc-and-ignition/74921/9 "2023-06-12T19:33:08Z")

</div>

Do other Wago devices show this behavior? How confident are you that Wago has implemented time zones properly in their devices?

(It isn't that unusual. Omron's modern flagship products have it all screwed up, too. If you want those to play nice, you must set the PLC to UTC.)

---

<div class="post-metadata">

**Author:** ![Alexander\_Filippov](https://avatars.discourse-cdn.com/v4/letter/a/7993a0/32.png) [@Alexander\_Filippov](https://forum.inductiveautomation.com/u/Alexander_Filippov)\
**Post date:** [June 12, 2023, 8:09pm UTC](https://forum.inductiveautomation.com/t/difference-in-date-and-time-tag-value-between-plc-and-ignition/74921/10 "2023-06-12T20:09:32Z")

</div>

You are right, changing the timezone in PLC has somewhat helped.  
I have set PLC to GMT/BST (they don't have a UTC in a drop-down list).  
Ignition now reads the tag with just one hour difference. lol  
Will wait for a reply from Wago Tech Support regarding a method of setting up a UTC time zone.  
I will post a final update into this thread.  
Thank you so much!

---

<div class="post-metadata">

**Author:** ![Alexander\_Filippov](https://avatars.discourse-cdn.com/v4/letter/a/7993a0/32.png) [@Alexander\_Filippov](https://forum.inductiveautomation.com/u/Alexander_Filippov)\
**Post date:** [June 12, 2023, 8:29pm UTC](https://forum.inductiveautomation.com/t/difference-in-date-and-time-tag-value-between-plc-and-ignition/74921/11 "2023-06-12T20:29:30Z")

</div>

After a few attempts and being too impatient, lol  
found a correct time string combination and typed it into the "Custom Time Zone" field of the PLC time configuration section.  
Typed "UTC0" and reboot.  
The clock in PLC and values of Date and Time tags in the PLC code are now shifted. But Date and Time values in Ignition are now correct.  
This is a temporary solution though. I guess, we should change the approach now. I guess, the ideal solution in this case will be to configure PLC back to Eastern time and to use Igniiton timestamps for all Date and Time values. At least, for this PLC type.  
Thank you so much for help!
