LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

time error

good after noon,

 

im having a problem when using format date time string. as the output grom the time stamp is the same as my laptop time but 1ce i pass it through the formate date time string im geting an increase of 1 hour. i attached a screen short of the problem. hope 2 get solution.thanks

 

regards,

shamaran

 

 

cFP time errror.JPG 

0 Kudos
Message 1 of 5
(2,940 Views)

Hi Shamaran,

 

"Get Date/Time in seconds" returns Universal time. Some other functions like "Format date/time string" return the local time. There's an input "UTC format", set it to true to get the string in universal time.

 

Hope this helps,

Daniel

 

0 Kudos
Message 2 of 5
(2,932 Views)

hai,

 

im only getting this type of error when i use specific computer. when i use the other pc with same funtion it returns the correct answer. i have checked the GMT value and UTF function . the minutes second  value exactly the same only the hour is increased by 1.

 

thanks,

 

regards

shamaran 

0 Kudos
Message 3 of 5
(2,924 Views)

Hi Shamaran,

 

I found this KnowledgeBase that describes a potential cause for this problem, and how to fix it. Please give it a try and let us know if that works.

 

Also, perhaps you might want to take a look at the Date/Time settings of Windows on your two computers, maybe if you find some differences there you might be able to figure out what the cause of this behavior is. 

 

 

 

Best regards,
Vern Yew
Applications Engineer
0 Kudos
Message 4 of 5
(2,885 Views)
Has this issue been resolved in later versions of LV?  Is it possible for the LV time functions to return the wrong date??
0 Kudos
Message 5 of 5
(2,818 Views)