aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/util.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-21 14:48:39 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-21 14:48:39 +0000
commit3a554fc5954cdcaac9a2af02719735efeba0e392 (patch)
tree2d502572b00dd8bc08361c2f03dc4f486979f856 /src/libutil/util.c
parent81e8e5e413ad8ba9dfb8b8f7da5ab2939dac4534 (diff)
downloadrspamd-3a554fc5954cdcaac9a2af02719735efeba0e392.tar.gz
rspamd-3a554fc5954cdcaac9a2af02719735efeba0e392.zip
[Fix] Couple of fixes for date parsing
Diffstat (limited to 'src/libutil/util.c')
-rw-r--r--src/libutil/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/util.c b/src/libutil/util.c
index 0ddbaf9ef..9d87d5c9f 100644
--- a/src/libutil/util.c
+++ b/src/libutil/util.c
@@ -2654,7 +2654,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;
}