These functions are for the PLC, not the HMI, so OP's scenario is a little different.Siemens have two functions to read the time of day. RD_SYS_T & RD_LOC_T. Could it be your reading system time and not local time or vice versa.
OS is showing the correct time, but is it also the correct timezone? I'd ASSUME yes, but....Hi guys!
- No, it isn't DST. The RT is running on a Windows OS and the OS showing the correct time.
- I don't think the RD_SYS_T or RD_LOC_T are related here, I am not trying to show the PLC time. Just the PC/HMI time.
- The above RT image is taken from the PC that is running it, and visualizing it in a browser.
- I will do some testing with MK42 recommendations.
- What is strange is that these are straight from the example project and the script is from the manual.
Yes, the time zone is set correctly. Still trying to find time to get your other points testedOS is showing the correct time, but is it also the correct timezone? I'd ASSUME yes, but....
2) The Output Format you specified at the IO field could be overruling the value you pass to it. It's expecting a datetime, and you're giving it a string. It might be erroring out and just using some system time or some default value. But Javascript is a bit fluffy when it comes to typing, so maybe it all sorts itself out in the back end.

Teamwork!I think this was it. I removed the formatting and that works like a charm. Thank you for the guidance!