LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Any way of disabling timezone / daylight savings (DST)

Solved!
Go to solution

I have over a year's worth of timestamped data in a file. The timestamp is GMT (UTC). When I graph it, the graph adjusts the data for local time zone settings. I do not want it to. I want to see UTC all the way through the data. The time is fed to the graph as an array of number of seconds. The graph display option of 'Absolute Time' is selected. It is the XY-graphing function that is implementing the unwanted timezone+DST settings.

 

I can offset the data for the timezone that the local Windows system is set to but how do I adjust the data so that when graphed, the graph does not create time in March and lose time in October?

 

Disabling the Windows DST setting is not an option. The program I am writing will be used on numerous machines around the world and I do not want the program to change whatever timezone settings are already on those machines. (Besides, I do not think implemented timezone changes are effective until a LV program restarts.) Nor do I want to instruct users to do this before using the program because that is just lame.

 

There must be a way. Anybody know, please?

 

 

0 Kudos
Message 1 of 4
(3,016 Views)
Solution
Accepted by topic author jimfoxy

Select the item you want to reformat, go to properties and go to 'formatter'. Select the advanced formatting and insert a '^' sign after the first <.

 

See this online help about time formatting.

This forum post is quite in detail on the subject.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 2 of 4
(3,006 Views)
Thank you kindly. Great!
0 Kudos
Message 3 of 4
(3,003 Views)

Take a look at the help file for Format Date/Time string function and Format Codes for Date/Time String in the help file.  There are numerous advanced codes that you can use.

 

Especially look at <%^<>T> for universal time container and %z difference between local time and universal time.

 

You might be able to format the X axis of your graph to use universal time with these.

 

It may take some experimentation to get it to work out right.

Message Edited by Ravens Fan on 10-08-2009 12:11 PM
Message 4 of 4
(3,002 Views)