Skip to main content
Best answer by Velkumar

Hi @MM_9023322 

 

Since Thingworx is configured in the UTC timezone, you can convert PST to UTC and set the scheduler CRON string accordingly. For example: When PST is 00:00, UTC will be 07:00. So you can set the scheduler to trigger at 07:00 UTC for the facility in Sacramento.

 

Create a new scheduler for each facility and update the CRON string based on the facility timezone 

 

If scheduler configurations are updated from Mashup / Runtime, you can get the client browser timezone difference and convert it to UTC to update scheduler configurations.

 

/VR

 

 

 

 

1 reply

19-Tanzanite
October 6, 2023

Hi @MM_9023322  

 

If you want to get the Thingworx server timezone you can get using the below method.

Velkumar_0-1696584951555.png

 

To get the client browser timezone 

timevalue = new Date();
Output = timevalue.toString();

Velkumar_2-1696586235399.png

 

To get the client browser timezone difference, you can use "getTimezoneOffset()" in the expression function to get the timezone offset value

 

timevalue = new Date();
Output = timevalue.getTimezoneOffset();

 

Velkumar_1-1696586137624.png

 

/VR

15-Moonstone
October 6, 2023

Hi @Velkumar , no I don't want server time, I want to get the facility time. Say, if my input is CDT, PST, IST should give me time as per it!

19-Tanzanite
October 6, 2023

Hi @MM_9023322 

 

Could you please explain your use case 

 

/VR