Wrong Time Information Using the InetSendMail Function on Labwindows/CVI

Updated Dec 18, 2023

Reported In

Software

  • LabWindows/CVI
  • LabWindows/CVI 2019 Full

Issue Details

  • Why is my client's computer time specified in the future when using the InetSendMail function? 
  • Can I set a date parameter like we set the title of the email?

Solution

The 'InetSendMail' function from the 'Internet Library' uses by default the UTC time zone to operate. So, the time on the client's side is always going to match this specified time zone.

If the time appears to be in the future, the difference in time is happening because of an inconsistency between the UTC timezone and the one selected on the client computer. This issue could be fixed by selecting the UTC timezone on the client's computer from the operating-system configurations. 

Additional Information

If you are not sure how to change the timezone in your Windows-based machine, here is a reference that can be used as a guide from the Microsoft team.

Also, there was a similar condition reported as bug#460818 on LabWindows/CVI, but this was corrected on LabWindows/CVI 2019 and the time and date information now loads correctly referenced to the UTC timezone.