🧾 Logging with Sympholight and different Times and Time Zones

Some customers report, that the logging time deviates from the local time, especially on the Core S.
That is correct.

The Core S works with UTC (Universal Time Coordinated), this time is the same on every place of the world. Due to this fact this time may deviate from the local time.
And the logging is done with the time of the operating system.
The LCE has a Windows operating system. Windows normally works with local time, so the logging is also done with local time.

Imagine, you are in Indiana (UTC -5:00h) and it is 28 September 2021:
At 05:00 AM local time you log something with Sympholight.
With your PC you will get a log entry that starts with
INFO  2021-09-28 05:00:00,000
At the same time you log something with your Core S. There the log entry that starts with
INFO  2021-09-28 10:00:00,000 

But as it is not enough, Sympholight on the PC can run in a different Time Zone than the operating system.
When we assume, this is Arizona (UTC -7:00h) time and the log entry above is triggered by a Time Trigger block, then the Trigger Time is set to 


To show you the difference of times, I add a small project that should work with Sympholight V5.1 SR1 and newer.
With the ActionPad you can see the different times and write the actual time into the log file.

You can also see how to get the local Sympholight time.


 

Attached Files
TimeZoneExample_V5.1SR1.hfp
404kb