From 09dc8428a676fc13a172551666a772fb427f9ad0 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 23 Dec 2016 14:25:57 +0000 Subject: [PATCH] [Fix] Revert bad offset calculation --- src/libutil/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.3