Quantcast
Viewing all articles
Browse latest Browse all 68979

Daylight Saving Format Data/Time String vs Get Date/Time in Seconds

Dear all,

 

I have been developing a real time application by using a cRIO 9074 that has two loops. The first collects data and records time by using the "Format Date/Time String" module with the following time sting: "%d/%m/%Y %H:%M". The output is a sting with day/mouth/year hour:minute.

The second loop gets time from the cRIO by using the "Get Date/Time in Seconds" module and the timestamp output is sent by a shared variable to one application running in a local computer.

 

The problem started last Sunday with the Daylight Saving. By using MAX I am able to see that the cRIO time is wrong (1 hour less) and that the "Automatically adjust clock for Daylight Saving Time" is unchecked and gray, so I am unable to change it.

 

The time from the first loop by using the "Format Date/Time String" returns the time from cRIO (1 hour late), however the time from the second loop is correct. I have manually corrected time by using MAX, so now the first loop is correct, and the second is now 1 hour more.

 

Any ideias?


Viewing all articles
Browse latest Browse all 68979

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>