From: Vsevolod Stakhov Date: Fri, 23 Dec 2016 14:25:57 +0000 (+0000) Subject: [Fix] Revert bad offset calculation X-Git-Tag: 1.5.0~493 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=09dc8428a676fc13a172551666a772fb427f9ad0;p=thirdparty%2Frspamd.git [Fix] Revert bad offset calculation --- diff --git a/src/libutil/util.c b/src/libutil/util.c index 76325522c3..c33a92180f 100644 --- a/src/libutil/util.c +++ b/src/libutil/util.c @@ -2648,7 +2648,7 @@ rspamd_tm_to_time (const struct tm *tm, glong tz) result += tm->tm_sec; /* Now apply tz offset */ - result += offset; + result -= offset; return result; }