Time conversion back from rfc to ftn uses the localtime offset

This commit is contained in:
Michiel Broek 2007-09-05 19:22:27 +00:00
parent dd9f8f9aa8
commit df88d43c9f
2 changed files with 3 additions and 2 deletions

View File

@ -9,6 +9,7 @@ v0.91.11 02-Sep-2007
mbfido:
To test, date conversion for export netmail->email.
Also conversion back from rfc to ftn uses the time diffrence.
v0.91.10 21-Aug-2007 - 02-Sep-2007

View File

@ -506,9 +506,9 @@ ftnmsg *mkftnhdr(rfcmsg *msg, int newsmode, faddr *recipient)
}
if ((p = hdr((char *)"X-Origin-Date",msg)))
tmsg->date = parsedate(p, NULL);
tmsg->date = parsedate(p, NULL) - (gmt_offset((time_t)0) * 60);
else if ((p = hdr((char *)"Date",msg)))
tmsg->date = parsedate(p, NULL);
tmsg->date = parsedate(p, NULL) - (gmt_offset((time_t)0) * 60);
else
tmsg->date = time((time_t *)NULL);