# How to set the Timestamp Source to Value on a tag

**URL:** <https://forum.inductiveautomation.com/t/how-to-set-the-timestamp-source-to-value-on-a-tag/26868>\
**Category:** Ignition Early Access\
**Created:** [July 25, 2019, 9:12am UTC](https://forum.inductiveautomation.com/t/how-to-set-the-timestamp-source-to-value-on-a-tag/26868 "2019-07-25T09:12:01Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jan](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@Jan](https://forum.inductiveautomation.com/u/Jan)\
**Post date:** [July 25, 2019, 9:12am UTC](https://forum.inductiveautomation.com/t/how-to-set-the-timestamp-source-to-value-on-a-tag/26868/1 "2019-07-25T09:12:01Z")

</div>

How to set the Timestamp Source to Value on a tag, this option is available in Ignition 7.9 but I can not find how to do this using Ignition 8.

I need this option because alarm bits are timestamped by the PLC in our projects.

Kind regards,  
Jan

---

<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:** [July 25, 2019, 12:41pm UTC](https://forum.inductiveautomation.com/t/how-to-set-the-timestamp-source-to-value-on-a-tag/26868/2 "2019-07-25T12:41:33Z")

</div>

There should be a Timestamp Source property for each Alarm defined on a tag.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/9/9df4eddc3bcfb26601a8223373c255e969d6bd31.png)

---

<div class="post-metadata">

**Author:** ![Jan](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@Jan](https://forum.inductiveautomation.com/u/Jan)\
**Post date:** [July 25, 2019, 12:46pm UTC](https://forum.inductiveautomation.com/t/how-to-set-the-timestamp-source-to-value-on-a-tag/26868/3 "2019-07-25T12:46:13Z")

</div>

I know, but that is on the alarm and not on the tag itself, see screen shot (source ignition 7.9).

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/e/e5c7aa2e030c2ee29ea3d925978b02ddd74ecbb5.png)

---

<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:** [July 25, 2019, 12:51pm UTC](https://forum.inductiveautomation.com/t/how-to-set-the-timestamp-source-to-value-on-a-tag/26868/4 "2019-07-25T12:51:56Z")

</div>

Well, that’s a history-related setting, not the tag itself.

There’s 2 timestamps that might come with a value from an OPC server - “source” and “server”. OPC tags always get the “source” timestamp if defined and the “server” timestamp if not. Usually it’s the “server” timestamp, which in the common case with e.g. a polling-based driver is the timestamp at which it polled the value. “Source” timestamps are only used when there’s a possibility the device will send a timestamp along with a value.

---

<div class="post-metadata">

**Author:** ![Jan](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@Jan](https://forum.inductiveautomation.com/u/Jan)\
**Post date:** [July 25, 2019, 1:03pm UTC](https://forum.inductiveautomation.com/t/how-to-set-the-timestamp-source-to-value-on-a-tag/26868/5 "2019-07-25T13:03:05Z")

</div>

Ok, I meant the history-related setting.

We use an additional OPC OFS of Schneider Electric for timestamped events, which is capable of sending the timestamp along with a value. This works perfectly for the alarm, but of course we would like to write the event to history with the same timestamp, so this state change can be use in graphs with together with other signals.

So still I can not find the setting in Ignition 8!

---

<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:** [July 25, 2019, 1:05pm UTC](https://forum.inductiveautomation.com/t/how-to-set-the-timestamp-source-to-value-on-a-tag/26868/6 "2019-07-25T13:05:36Z")

</div>

I’m not sure exactly how this works in 8 or what the equivalent is for history. I’ll have to ask around in a couple hours when more people are in the office.

---

<div class="post-metadata">

**Author:** ![Jan](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@Jan](https://forum.inductiveautomation.com/u/Jan)\
**Post date:** [July 29, 2019, 10:10am UTC](https://forum.inductiveautomation.com/t/how-to-set-the-timestamp-source-to-value-on-a-tag/26868/7 "2019-07-29T10:10:29Z")

</div>

any news about this item?

---

<div class="post-metadata">

**Author:** ![Colby.Clegg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/colby.clegg/32/3282_2.png) [@Colby.Clegg](https://forum.inductiveautomation.com/u/Colby.Clegg)\
**Post date:** [July 29, 2019, 6:39pm UTC](https://forum.inductiveautomation.com/t/how-to-set-the-timestamp-source-to-value-on-a-tag/26868/8 "2019-07-29T18:39:15Z")

</div>

Hi,

Sorry for the delay- this setting was removed in 8 in an effort to start to reduce the multiple layers of timing definition and to get down to single sources of data.

The system timestamp only makes sense in situations where the system is scanning tags to collect values. In cases where the values are coming from the sources and being evaluated as they change, it makes sense to use the source timestamp.

So, we’ve made the logic that was previous driven by this setting more implicit. If the history is being collected “on change”, the value timestamp will be used. If the history mode is “tag group” or “periodic”, the system timestamp will be used.

I hope this helps. We’re open to refining the settings a bit more if necessary, and will be doing a little more work on tag history soon (for example, identifying and separating server-generated bad quality events from other quality events that come from the device).

---

<div class="post-metadata">

**Author:** ![hankhaines](https://avatars.discourse-cdn.com/v4/letter/h/ecd19e/32.png) [@hankhaines](https://forum.inductiveautomation.com/u/hankhaines)\
**Post date:** [May 6, 2021, 3:33pm UTC](https://forum.inductiveautomation.com/t/how-to-set-the-timestamp-source-to-value-on-a-tag/26868/9 "2021-05-06T15:33:40Z")

</div>

the OPCDA server we have hooked up to ignition, TDS32 from ABB, exports TAGNAME and TAGNAME\_TS on every value to provide an explicit timestamp on that tag. We need this for volume calculation tags so that we have the correct timestamp on the volume. It has nothing to do with when the value was polled, it comes from the device and is the timestamp on the calculation event. It has to be possible to combine these two tags into a tag with the value and the provided timestamp.

---

<div class="post-metadata">

**Author:** ![Vaishnavi.V](https://avatars.discourse-cdn.com/v4/letter/v/b19c9b/32.png) [@Vaishnavi.V](https://forum.inductiveautomation.com/u/Vaishnavi.V)\
**Post date:** [May 29, 2021, 6:13pm UTC](https://forum.inductiveautomation.com/t/how-to-set-the-timestamp-source-to-value-on-a-tag/26868/10 "2021-05-29T18:13:09Z")

</div>

Hi!I am facing a problem of timestamp mismatch.The tag value is getting logged at a different time stamp in the historian but not the exact time at which it got executed.For instance if my tag’s last execution was at around 11:15 pm , the value corresponding to 11:15 pm is getting logged at 11:20 pm in my historian.Why is this happening?Is there any solution to this?Kindly help me out.  
Tag Setting:  
Sample mode : Periodic  
Min time between samples :5 min  
Max time between samples : 5 min (I want to log data for every five minutes)  
The tag group base rate is also 5 minutes

---

<div class="post-metadata">

**Author:** ![e.cutino](https://avatars.discourse-cdn.com/v4/letter/e/e5b9ba/32.png) [@e.cutino](https://forum.inductiveautomation.com/u/e.cutino)\
**Post date:** [October 13, 2021, 1:03pm UTC](https://forum.inductiveautomation.com/t/how-to-set-the-timestamp-source-to-value-on-a-tag/26868/11 "2021-10-13T13:03:48Z")

</div>

Hi Colby, maybe I did not properly understand your explanation: the “source” timestamp is NEVER used and this is a problem. I’m running in trouble (there is a ticket) because in case of “flushing” from an MQTT device all the message are getting the system timestamp instead of the source timestamp. In this situation the data becomes not useful at all (i.g. I could have a large number of pressure value related to the time of flushing…).

This is true in general and beyond MQTT flushing: the tag “on change” must be valued with the source timestamp if it is coming from an external source. Differently becomes not useful (i.e. in case of massive flushing) and in any case is not coherent (the data acquires the server timestamp instead of the correct one on the device).

As per your post, if the history trigger is not “on change” but it is “periodic”, in such a case makes sense to have the system timestamp. But only in this case.

So: is there a way to have the source timestamp in the history for the tags “on change”?

Thanks, Elio

---

<div class="post-metadata">

**Author:** ![jeremy\_johnson](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jeremy\_johnson](https://forum.inductiveautomation.com/u/jeremy_johnson)\
**Post date:** [May 20, 2022, 4:29pm UTC](https://forum.inductiveautomation.com/t/how-to-set-the-timestamp-source-to-value-on-a-tag/26868/12 "2022-05-20T16:29:32Z")

</div>

Any resolution to this problem? I am having what I think may be a similar issue where I need to use the source timestamp value from the node instead of using the time of when the tag was actually updated in ignition.

For example: I want to update a memory tag on a “Value Changed” event from a different tag. When the (source) tag changes, the (target) memory tag’s timestamp becomes the current datetime. The problem is, the (source) tag could have been a delayed change as it is MQTT (latency, connection disruption, etc). I would like to be able to force the timestamp on the (target) memory tag so the historian will log the original timestamp.

---

<div class="post-metadata">

**Author:** ![Bob](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bob/32/16899_2.png) [@Bob](https://forum.inductiveautomation.com/u/Bob)\
**Post date:** [February 23, 2023, 1:22am UTC](https://forum.inductiveautomation.com/t/how-to-set-the-timestamp-source-to-value-on-a-tag/26868/13 "2023-02-23T01:22:50Z")

</div>

We have the same problem and I brought it up with Ignition v.7 as well. Some of our customers want values to be stored in the historian at regular intervals, like every 10 seconds whether the value changed or not. But even in Ignition v7 you could not use the "value"/souce time stamp from the device and set the storage to the historian on scan class execution or any other specific time interval, it could only be "on change". And we can't use system time because after a period of time where we lose connection to a device, when connectivity is restored all the missed data then comes in with the current system timestamp which is completely unacceptable.

It has been a huge problem for us. We are planning to do a rewrite of our application and I was hoping Ignition v8 allowed for source timestamps that would be stored with scan class (now Tag Group) settings, but alas no. For this reason alone we may need to use something other than Ignition for our new application.

---

<div class="post-metadata">

**Author:** ![Andre\_Hennecke](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@Andre\_Hennecke](https://forum.inductiveautomation.com/u/Andre_Hennecke)\
**Post date:** [November 6, 2025, 11:35am UTC](https://forum.inductiveautomation.com/t/how-to-set-the-timestamp-source-to-value-on-a-tag/26868/14 "2025-11-06T11:35:20Z")

</div>

I found this thread as we have similar requirements to set the source timestamp to memory tags (which are than be exposed via OPC-UA) is there already a way to do this?

**Update:**  
I found this in the documentation: [system.tag.writeAsync | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.3/appendix/scripting-functions/system-tag/system-tag-writeAsync). Unfortunatly there is no example how to include the property. Would this be an option to set the timestamp, if the timestamp counts as a property?

| List | `tagPaths` | A List of tag paths to write to. A tag property can be included in the path. If no property is specified in a tag path, the Value property is assumed. |
| --- | --- | --- |

---

<div class="post-metadata">

**Author:** ![Andre\_Hennecke](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@Andre\_Hennecke](https://forum.inductiveautomation.com/u/Andre_Hennecke)\
**Post date:** [November 6, 2025, 1:04pm UTC](https://forum.inductiveautomation.com/t/how-to-set-the-timestamp-source-to-value-on-a-tag/26868/15 "2025-11-06T13:04:28Z")

</div>

I did a quick check: you can write to the property timestamp, but it looks like it is not used as the actual timestame or it might be getting overwritten.

`paths = "[default]New Tag","[default]New Tag.timestamp"`  
`date = system.date.parse("2025-11-05 1:50:06", "yyyy-MM-dd HH:mm:ss")`  
`values = 1, date`  
`system.tag.writeBlocking(paths, values)`
