06-15-2012 04:40 PM
hello all,
i am trying to obtain the time-stamp based on the time-zone i assign in the computer... for ex. right now i m in CA, if I change the computer time-zone to EST, and use the Get Time/Date in Sec.vi, i still obtain the time in CA
and not the time acc to EST... how can i obtain the time as per the time on my laptop?
Solved! Go to Solution.
06-16-2012 01:04 PM
I seem to remember vaguely that LV only reads this setting on load, so try restarting LV after changing the time zone and see if that helps.
06-17-2012 03:43 AM
Another option would be to upgrade to a recent LabVIEW version. LabVIEW improved in that respect quite a bit, including support for timezone settings that match the settings of a timestamp even if it is in the past. I think 8.0 always used the timezone settings as configured for the current moment, even if the timestamp you wanted to convert into local time representation (the timestamp itself is ALWAYS stored as UTC value) had different summer start and stop times for instance. One caveat to this has to be mentioned, not all OS versions support timestamp correct timezone settings. I think Windows started with Vista to do that.
06-27-2012 12:02 PM
TST method works, u have to change the timestamp and then restart computer as labview reads the registry file related to the time when PC is booted, n i think that registry doesn't change
until u restart the computer...
lame windows probably...