New time offset method

This commit is contained in:
Michiel Broek 2007-09-05 18:40:02 +00:00
parent d710da1cdd
commit dd9f8f9aa8

View File

@ -863,8 +863,7 @@ void ExportNet(unsigned int MsgNum, int UUCPgate)
/*
* First send all headers
*/
// fprintf(fp, "Date: %s\n", rfcdate(Msg.Written));
fprintf(fp, "Date: %s\n", rfcdate(mktime(localtime(&Msg.Written))));
fprintf(fp, "Date: %s\n", rfcdate(Msg.Written + (gmt_offset((time_t)0) * 60)));
fprintf(fp, "From: %s@%s\n", fromname, ascinode(from, 0x2f));
tidy_faddr(from);
fprintf(fp, "Subject: %s\n", Msg.Subject);