From: DINH V. H. <ho...@us...> - 2008-06-15 22:24:44
|
Update of /cvsroot/libetpan/libetpan/src/low-level/imf In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20000/src/low-level/imf Modified Files: mailimf_types_helper.c Log Message: fixed timezone calculation Index: mailimf_types_helper.c =================================================================== RCS file: /cvsroot/libetpan/libetpan/src/low-level/imf/mailimf_types_helper.c,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- mailimf_types_helper.c 17 Feb 2008 13:13:28 -0000 1.21 +++ mailimf_types_helper.c 15 Jun 2008 22:24:41 -0000 1.22 @@ -1306,7 +1306,7 @@ if (localtime_r(&t, <) == NULL) return NULL; - off = (mail_mkgmtime(<) - mail_mkgmtime(&gmt)) / (60 * 60) * 100; + off = (mail_mkgmtime(<) - mail_mkgmtime(&gmt)) * 100 / (60 * 60); date_time = mailimf_date_time_new(lt.tm_mday, lt.tm_mon + 1, lt.tm_year + 1900, lt.tm_hour, lt.tm_min, lt.tm_sec, |