diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-13 18:07:26 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-13 18:07:26 +0000 |
commit | 21fa2b4bb6060474d3cf3317e39763a8d9e700d9 (patch) | |
tree | c824fe48abef5a85218a65f4cdec8bfc673890e2 /src | |
parent | 2739b417ab64b52f50fb6191c2660191e4034da9 (diff) | |
download | rspamd-21fa2b4bb6060474d3cf3317e39763a8d9e700d9.tar.gz rspamd-21fa2b4bb6060474d3cf3317e39763a8d9e700d9.zip |
[CritFix] Timezone defines seconds WEST UTC not East
Issue: #2074
Diffstat (limited to 'src')
-rw-r--r-- | src/libutil/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/util.c b/src/libutil/util.c index d025730ac..b6057f08d 100644 --- a/src/libutil/util.c +++ b/src/libutil/util.c @@ -2785,11 +2785,11 @@ void rspamd_localtime (gint64 ts, struct tm *dest) last_tzcheck = ts; } - ts += timezone; + ts -= timezone; rspamd_gmtime (ts, dest); dest->tm_zone = daylight ? (tzname[1] ? tzname[1] : tzname[0]) : tzname[0]; #if !defined(__sun) - dest->tm_gmtoff = timezone; + dest->tm_gmtoff = -timezone; #endif } |