Clock Manager or SMTP issue.
Jim Johnson
Posts: 27
Looks like I've invented a time machine!
When I send an email from my system using this command:
SmtpQueMessage(EMAIL_SOURCE,EMAIL_DESTINATION,EMAIL_SUBJECT,E_MAIL_MESSAGE,'')
I receive the email it has all the correct information except The times in e-mail don't match. In my outlook it will say the e-mail is received at 11:59 pm. This is correct, that is when the e-mail is sent. In the actual e-mail it shows a sent time if 12:59 am. I can't figure out where this time is coming from. I have the clock manager updating to the NIST, it works fine. The setting in Clock manager are giving me the correct time. It seems to have started after I set up the clock manager to update to the NIST. Any ideas? if it were the other way I would suspect the DST settings, but changing them didn't help either.
Thanks...Jim...
When I send an email from my system using this command:
SmtpQueMessage(EMAIL_SOURCE,EMAIL_DESTINATION,EMAIL_SUBJECT,E_MAIL_MESSAGE,'')
I receive the email it has all the correct information except The times in e-mail don't match. In my outlook it will say the e-mail is received at 11:59 pm. This is correct, that is when the e-mail is sent. In the actual e-mail it shows a sent time if 12:59 am. I can't figure out where this time is coming from. I have the clock manager updating to the NIST, it works fine. The setting in Clock manager are giving me the correct time. It seems to have started after I set up the clock manager to update to the NIST. Any ideas? if it were the other way I would suspect the DST settings, but changing them didn't help either.
Thanks...Jim...
0
Comments
BTW I can't get any of the clock manager functions to work. Are they supposed to? I was going to do some rework on this, and play with the astro-clock but it won't compile. Am I missing something here?
...Jim...
See this thread for details.
http://www.amxforums.com/showthread.php?9402-Clock-Manager-AstrClock-DST&p=64839#post64839
So I downloaded vining's Date and time AXI it is really cool and now I'm obsessed !! I've added an Easter date Calculator to it, now I'm working on Phases of the moon. (no particular reason why, Just because). However I'm not a Math wiz or fluent in other programming languages so when I get example code from the web sometimes I have trouble translating it to Netlinx. Here is the code for Moon Phases:
function Conway(year, month, day)
{
var r = year % 100;
r %= 19;
if (r>9){ r -= 19;}
r = ((r * 11) % 30) + parseInt(month) + parseInt(day);
if (month<3){r += 2;}
r -= ((year<2000) ? 4 : 8.3);
r = Math.floor(r+0.5)%30;
return (r < 0) ? r+30 : r;
}
Could somebody help me translate this to netlinx? My version returns Junk!
My next project will be equinoxes and solstices!
Thanks...Jim...