Hello!
I am going through the tag histroy table and noticed that the t_stamp is showing 4 hours in the future. My gateway is seeing the correct EST timezone, as well as the project looking at the gateway timezone.
Gateway timezone:
Timezone within the project properties:
This is a expression that pulls the current DateTime:
Here is the query to pull the records, I am using the DATEADD feature recommended on the support page
SELECT [tagid]
,[intvalue]
,[floatvalue]
,[stringvalue]
,[datevalue]
,[dataintegrity]
,DATEADD(s,t_stamp/1000,'1970-01-01 00:00:00')
FROM [fakedb].[db_owner].[sqlth_1_data]
order by t_stamp desc
This is the date I get back. It is set to record the value every minute. at the time of this post it is 10:51 AM EST
Let me know if I am missing anything, thank you!