Skip to main content
1-Visitor
April 8, 2016
Solved

Valuestream Timestamp

  • April 8, 2016
  • 7 replies
  • 4464 views

I have a value stream taking in values from a remote thing. Data goes out to the server every 10 seconds.

However the time stamp on my value stream is 4 hours off. Is there a way to set the time on Thingworx Platform.

Eg: From the Valuestream:

2016-04-08 07:48:34

125.74

1512.50

2016-04-08 07:48:24

126.40

1491.50

2016-04-08 07:48:14

125.25

1470.52

The time on my server as well as the remote thing is the same and set to 11:4AM.

Thanks.

Best answer by ibanham

Unless it's changed recently, Java SDK sends timestamps by default when you use setProperty. The .NET SDK does not and you have to use the VTQ method.

ThingWorx stores timestamps in UTC and displays timestamps based on the timezone settings of the client.

How are you looking at the contents of the ValueStream? Your profile says you're in Boston. That's 5 hours behind the UK, but it's summer time.. so the UK is 1 hr ahead of UTC. So the four hour difference suggests that you're seeing the "raw" UTC data in the valuestream. If you display the valuestream data in a mashup, does it show Boston time?

7 replies

5-Regular Member
April 8, 2016

Gerard, where is this EMS/ SDK located that is connecting to your Remote Thing? Is that in the same timezone as well?

gseq1-VisitorAuthor
1-Visitor
April 8, 2016

It is in the same time zone(EDT)

I will double check,

If I do a >Date command on the server, it matches with the Edge.

5-Regular Member
April 8, 2016

Are you pushing any timestamps or anything related through your EMS or SDK? Is this a custom script or are you using one of the available examples like the Steam Sensor example?