LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

smtp send message.vi has a wrong send time

I am using labview 7.0 with internet toolkit. When I tried to use "SMTP send message.vi" to send alert message, I got the wrong DATE field. The time is off by a hour.
0 Kudos
Message 1 of 6
(3,590 Views)
I would suggest looking at your computer's DST settings - perhaps you have set the clock ahead but not turned on DST. If so, the conversion to GMT and back will not be correct.
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 2 of 6
(3,587 Views)
The DST settings on my computer is correct. In fact I tried this on many different computers, and they all come to the same result.
Just an another piece of information, when I run "SMTP Email Send Message (Small).vi on the same machine, I got the correct time stamp, but not the "SMTP Email Send Message.vi" and others.

Thank you!
0 Kudos
Message 3 of 6
(3,587 Views)
There is a bug in the way the LabVIEW treats daylight savings time in LabVIEW 7.0. Date/Time To Seconds primitive currently ignores it and that is the function used in the email VI.
0 Kudos
Message 4 of 6
(3,587 Views)
Hello.  Found this post after having the same problem as the original poster.  On 7.1.1 it is still a problem.  Please see attached gif of a simple workaround.  This patch removes the date from the e-mail info sent and thus leaves the date determination up to the receiver.
0 Kudos
Message 5 of 6
(3,422 Views)
Looks like my attachments weren't attached...trying again...

The first gif is the original vi (SMTP Email Send Message Header.vi)

The second gif is this vi with the date info removed.
Download All
0 Kudos
Message 6 of 6
(3,420 Views)