# OPC SQL Tag timestamp ? Access to opc-ua server item ts

**URL:** <https://forum.inductiveautomation.com/t/opc-sql-tag-timestamp-access-to-opc-ua-server-item-ts/8572>\
**Category:** Ignition\
**Created:** [June 16, 2014, 2:25pm UTC](https://forum.inductiveautomation.com/t/opc-sql-tag-timestamp-access-to-opc-ua-server-item-ts/8572 "2014-06-16T14:25:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [June 16, 2014, 2:25pm UTC](https://forum.inductiveautomation.com/t/opc-sql-tag-timestamp-access-to-opc-ua-server-item-ts/8572/1 "2014-06-16T14:25:58Z")

</div>

For Ignition OPC SQL Tag, is there a way to configure which Timestamp is read by the opc-ua client side ?  
LastChange property of an opc sqltag use this timestamp or is only based on the read value ?

Into an opc-ua server, I think that there are for an item, a Value, a Quality and a server timestamp and source timestamp ?

I would like to be able to read the opc-ua server original timestamp.  
 ![:scratch:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/76d1620bec252bfac07050c889ff5a91dc8a9c25.gif ":scratch:")

---

<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 16, 2014, 4:21pm UTC](https://forum.inductiveautomation.com/t/opc-sql-tag-timestamp-access-to-opc-ua-server-item-ts/8572/2 "2014-06-16T16:21:09Z")

</div>

The LastChange property uses the timestamp from the value.

Ignition’s OPC-UA client connection first tries to use the ‘source’ timestamp, and if that’s not included, it uses the ‘server’ timestamp. If neither were included it simply uses the current time (the time at which the client received the value).

There are no settings that influence this behaviour.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [June 17, 2014, 6:48am UTC](https://forum.inductiveautomation.com/t/opc-sql-tag-timestamp-access-to-opc-ua-server-item-ts/8572/3 "2014-06-17T06:48:20Z")

</div>

Thanks Kevin for these clarifications.

Does Ignition OPC-UA Server (Siemens, modbus TCP, AB, …) provides source and server timestamp to opc-ua client ?

---

<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 17, 2014, 12:47pm UTC](https://forum.inductiveautomation.com/t/opc-sql-tag-timestamp-access-to-opc-ua-server-item-ts/8572/4 "2014-06-17T12:47:25Z")

</div>

[quote=“mazeyrat”]Thanks Kevin for these clarifications.

Does Ignition OPC-UA Server (Siemens, modbus TCP, AB, …) provides source and server timestamp to opc-ua client ?[/quote]

It should, but they’re usually identical because none of those protocols provide their own source times when you poll data values.
