# How to read the difference betwen the Timestamp of Last Stored Value and the System Time of Last Stored Value

**URL:** <https://forum.inductiveautomation.com/t/how-to-read-the-difference-betwen-the-timestamp-of-last-stored-value-and-the-system-time-of-last-stored-value/111590>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [October 20, 2025, 8:44am UTC](https://forum.inductiveautomation.com/t/how-to-read-the-difference-betwen-the-timestamp-of-last-stored-value-and-the-system-time-of-last-stored-value/111590 "2025-10-20T08:44:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ervin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ervin/32/57644_2.png) [@Ervin](https://forum.inductiveautomation.com/u/Ervin)\
**Post date:** [October 20, 2025, 8:44am UTC](https://forum.inductiveautomation.com/t/how-to-read-the-difference-betwen-the-timestamp-of-last-stored-value-and-the-system-time-of-last-stored-value/111590/1 "2025-10-20T08:44:20Z")

</div>

For a given tag  
How to read the difference betwen the Timestamp of Last Stored Value and the System Time of Last Stored Value  
or at least the difference between them as this is what I am looking for.

(In my cases, I do not use history storage on the the PLC so all values recieved should be very close to the real server time.)  
However, probably due to some TimeZone settings on some PLC's, I recieve timestamps with +2 +3 hours time differences.

So I need an easy way to check when something is wrong with this.

 ![2025.10.20 how to read Timestamp of last stored value](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/f/efceb7866d75ad2e6976d26e25ee15dcce4e4ce5.jpeg)

Or any way to check. I’m open for any option possible with 8.1. expressions, scripts, bindings, GatewayScripts, SQL scripts(PostGre), etc. To raise the flag (visualize) I’ll use Perspective
