Skip to main content
1-Visitor
June 8, 2020
Question

Date time mismatch from server to local

  • June 8, 2020
  • 3 replies
  • 1311 views

Hi,

We have developed screens in ThingWorx in server side, when we connect the VPN and open the runtime link in our local machine. We see the mismatch of timezone. We saw that this issue prevails in Thingworx. We also came across a jira ticket. Can you please send us the solution link to that jira ticket.

 

Thanks,

Shalini V.

3 replies

1-Visitor
June 8, 2020

Hi,

 

What do you expect? the article you posted it's clear:

 

  • Browser Mashups are always rendered at Browser TimeZone
  • Server Side Scripting always run on server TimeZone (that's not on the article, but it's how it works).

Yes this is a big limitation on ThingWorx and I've already pointed it out 5 years ago, but for what states on this article you posted doesn't seems that they want to solve it. It's totally doable, actually we already solved customizing all TW standard Widgets with a bindable property named "TimeZone" and just touching some bits here and there, but they aren't for the labour...

 

Just my two cents,

Carles

15-Moonstone
June 8, 2020

Hi,

 

Try to get the time into sting value and bind it on runtime on Mashup if you are showing it on Grid or Label you won't have any issue. If you are binding it to calendar the browser itself will convert it according to local time zone.

Regards

Shyam 

Community Manager
June 15, 2020

Hi @svisveswaraiya_285988.

 

If you feel your question has been answered, please mark the appropriate reply as the Accepted Solution for the benefit of others on the community.

 

Regards.

 

--Sharon